summaryrefslogtreecommitdiffstats
path: root/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'types.ts')
-rw-r--r--types.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/types.ts b/types.ts
new file mode 100644
index 0000000..05ccebe
--- /dev/null
+++ b/types.ts
@@ -0,0 +1,15 @@
+import firebase from 'firebase/app'
+
+export type UserType = {
+ id: string;
+ avatarUrl: string|null;
+ displayName: string|null;
+};
+
+export type PhraseType = {
+ title: string;
+ isPublic: boolean;
+ phonetics: string;
+ description: string;
+ owner: firebase.firestore.DocumentReference|UserType;
+};