* starting flow integration
* found a bug in EventHelper * reduce wait() calls
This commit is contained in:
26
declarations/Structs.js
Normal file
26
declarations/Structs.js
Normal 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
17
declarations/Y.js
Normal 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>
|
||||
Reference in New Issue
Block a user