summaryrefslogtreecommitdiffstats
path: root/types.ts
blob: 05ccebe2542b00ef9c71bd177a9bb764f5d89a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
};