added flow support for Connector.js

This commit is contained in:
Kevin Jahns
2015-11-30 12:26:02 +01:00
parent bd9c3813fd
commit da2762edf5
5 changed files with 82 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
/* @flow */
'use strict'
module.exports = function (Y /* : YGlobal */) {
module.exports = function (Y /* :YGlobal */) {
/*
Partial definition of an OperationStore.
TODO: name it Database, operation store only holds operations.
@@ -16,7 +16,7 @@ module.exports = function (Y /* : YGlobal */) {
*/
class AbstractDatabase {
/* ::
y: YInstance;
y: YConfig;
forwardAppliedOperations: boolean;
listenersById: Object;
listenersByIdExecuteNow: Array<Object>;