Move types. I need to rewrite this app
This commit is contained in:
21
components/Types.tsx
Normal file
21
components/Types.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
export type User = {
|
||||
id: number;
|
||||
appleId: string | null;
|
||||
appleEmail: string | null;
|
||||
fullName: string;
|
||||
pfpURL: string | null;
|
||||
pushToken: string;
|
||||
createdAt: Date;
|
||||
};
|
||||
export type Relationship = {
|
||||
id: number;
|
||||
title: string;
|
||||
status: 'pending' | 'accepted' | 'rejected';
|
||||
relationshipStartDate: Date;
|
||||
createdAt: Date;
|
||||
};
|
||||
export type RelationshipData = {
|
||||
relationship: Relationship;
|
||||
partner: User;
|
||||
};
|
Reference in New Issue
Block a user