added flow support for Struct.js

This commit is contained in:
Kevin Jahns
2015-11-30 12:47:33 +01:00
parent da2762edf5
commit e9c40f9a83
4 changed files with 30 additions and 24 deletions

View File

@@ -17,7 +17,12 @@ type Operation = Struct
type Insertion = {
id: Id,
left: Id,
origin: Id,
right: Id,
parent: Id,
parentSub: ?Id,
opContent: ?Id,
content: ?any,
struct: 'Insert'
}

View File

@@ -1,10 +1,10 @@
/* @flow */
type YGlobal = {
utils: Object;
Struct: Object;
AbstractDatabase: any;
AbstractConnector: any;
utils: Object,
Struct: any,
AbstractDatabase: any,
AbstractConnector: any
}
type YConfig = {