yjs/declarations/Structs.js
Kevin Jahns bd9c3813fd * starting flow integration
* found a bug in EventHelper
* reduce wait() calls
2015-11-26 00:46:02 +01:00

26 lines
331 B
JavaScript

/* @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'
}