flowify a few more Libraries

This commit is contained in:
Basil Hosmer
2015-03-26 10:06:50 -07:00
parent 7e02a1e111
commit 030b264eb4
9 changed files with 57 additions and 23 deletions

View File

@@ -7,6 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule InteractionManager
* @flow
*/
'use strict';
@@ -70,7 +71,7 @@ var InteractionManager = {
/**
* Schedule a function to run after all interactions have completed.
*/
runAfterInteractions(callback) {
runAfterInteractions(callback: Function) {
invariant(
typeof callback === 'function',
'Must specify a function to schedule.'
@@ -82,7 +83,7 @@ var InteractionManager = {
/**
* Notify manager that an interaction has started.
*/
createInteractionHandle() {
createInteractionHandle(): number {
scheduleUpdate();
var handle = ++_inc;
_addInteractionSet.add(handle);
@@ -92,7 +93,7 @@ var InteractionManager = {
/**
* Notify manager that an interaction has completed.
*/
clearInteractionHandle(handle) {
clearInteractionHandle(handle: number) {
invariant(
!!handle,
'Must provide a handle to clear.'