Add flow, example implementation and types

This commit is contained in:
Tom Moor
2017-04-27 22:10:43 -07:00
parent 2095b3a874
commit 4e5c3944d8
6 changed files with 156 additions and 16 deletions

32
types.js Normal file
View File

@@ -0,0 +1,32 @@
export type User = {
avatarUrl: string,
id: string,
name: string,
username: string,
};
export type Collection = {
createdAt: string,
description: string,
id: string,
name: string,
type: string,
updatedAt: string,
url: string,
};
export type Document = {
collaborators: Array<User>,
collection: Collection,
createdAt: string,
createdBy: string,
html: string,
id: string,
private: boolean,
team: string,
text: string,
title: string,
updatedAt: string,
updatedBy: string,
url: string,
};