Move types. I need to rewrite this app

This commit is contained in:
2024-10-14 13:48:22 -05:00
parent fc1975fd74
commit f96076d5ae
7 changed files with 120 additions and 124 deletions

21
components/Types.tsx Normal file
View 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;
};