chore: clean up types

This commit is contained in:
Stevan Freeborn
2023-09-11 13:49:13 -05:00
parent e29b46cdb1
commit dd17181510
5 changed files with 18 additions and 34 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Doc, Id } from '../../../convex/_generated/dataModel';
export type UserDto = {
_id: Id<'users'>;
_creationTime: number;
clerkUsername: string | null;
clerkImageUrl: string;
};
export type PostWithUserDto = Doc<'posts'> & { user: UserDto };