mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-04 13:40:43 -03:00
arreglado path /timeline y añadida logica crearpost al fetch
This commit is contained in:
21
src/types.d.ts
vendored
21
src/types.d.ts
vendored
@@ -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?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user