* starting flow integration

* found a bug in EventHelper
* reduce wait() calls
This commit is contained in:
Kevin Jahns
2015-11-26 00:46:02 +01:00
parent 940a44bb7c
commit bd9c3813fd
12 changed files with 200 additions and 75 deletions

26
declarations/Structs.js Normal file
View File

@@ -0,0 +1,26 @@
/* @flow */
type UserId = string
type Id = [UserId, number]
/*
type Struct = {
id: Id,
left?: Id,
right?: Id,
target?: Id,
struct: 'Insert' | 'Delete'
}*/
type Struct = Insertion | Deletion
type Insertion = {
id: Id,
left: Id,
right: Id,
struct: 'Insert'
}
type Deletion = {
target: Id,
struct: 'Delete'
}

17
declarations/Y.js Normal file
View File

@@ -0,0 +1,17 @@
/* @flow */
type YGlobal = {
utils: Object;
Struct: Object;
AbstractDatabase: any;
}
type YInstance = {
db: Object,
connector: Object,
root: Object
}
declare var YConcurrency_TestingMode : boolean
type Transaction<A> = Generator<any, A, any>