client server

Summary: Migrating Server, Client and UninitializedClient to TypeScript

Reviewed By: passy

Differential Revision: D16687855

fbshipit-source-id: 402e4dbcd5d283d3e280d4d8b312662829457886
This commit is contained in:
Daniel Büchele
2019-08-08 10:55:17 -07:00
committed by Facebook Github Bot
parent 53c1eee641
commit 5f53087c7e
35 changed files with 476 additions and 371 deletions

View File

@@ -6,21 +6,21 @@
*/
export type User = {
name?: string,
name?: string;
profile_picture?: {
uri: string,
},
uri: string;
};
};
export type State = User;
export type Action =
| {
type: 'LOGIN',
payload: User,
type: 'LOGIN';
payload: User;
}
| {
type: 'LOGOUT',
type: 'LOGOUT';
};
const INITIAL_STATE: State = {};