arreglado path /timeline y añadida logica crearpost al fetch

This commit is contained in:
2025-11-23 19:49:07 -03:00
parent 3fbacce3fe
commit 5159ebffd4
4 changed files with 134 additions and 52 deletions

21
src/types.d.ts vendored
View File

@@ -6,12 +6,13 @@ export interface Post {
parentPostId?: string;
likesCount: number;
repliesCount: number;
createdAt: Date;
createdAt: string;
updatedAt?: Date;
isEdited: boolean;
visibility: string;
hashtags?: string[];
}
export interface User {
_id: string;
displayName: string;
@@ -34,13 +35,19 @@ export interface Sesion {
}
export interface LoginDto {
username: string?;
password: string?;
username: string?;
password: string?;
}
export interface RegisterDto {
username: string?;
email: string?;
password: string?;
displayName: string?;
username: string?;
email: string?;
password: string?;
displayName: string?;
}
export interface CreatePostDto {
content: string;
imageUrl: string?;
parentPostId: string?;
}