diff --git a/reflux/reflux-tests.ts b/reflux/reflux-tests.ts index 3ebc6f2a1f..afebd1a811 100644 --- a/reflux/reflux-tests.ts +++ b/reflux/reflux-tests.ts @@ -1,9 +1,9 @@ +/// +/// + import Reflux = require("reflux"); import React = require("react"); -//var Reflux: RefluxCore; -//var React: React; - var syncActions = Reflux.createActions([ "statusUpdate", "statusEdited", @@ -31,7 +31,7 @@ var statusStore = Reflux.createStore({ this.listenTo(asyncActions.fireBall, this.onFireBall); }, // Callback - onFireBall: function (flag) { + onFireBall: function (flag: boolean) { var status = flag ? 'ONLINE' : 'OFFLINE'; // Pass on to listeners diff --git a/reflux/reflux.d.ts b/reflux/reflux.d.ts index 70757b9d05..035bca7f3f 100644 --- a/reflux/reflux.d.ts +++ b/reflux/reflux.d.ts @@ -34,7 +34,7 @@ declare module RefluxCore { stopListeningTo(listenable: Listenable): boolean, stopListeningToAll(): void, fetchInitialState(listenable: Listenable, defaultCallback: Function): void, - trigger(state: any) + trigger(state: any):void; } interface ActionsDefinition { @@ -52,8 +52,8 @@ declare module RefluxCore { function createActions(definition: ActionsDefinition): any; function createActions(definitions: string[]): any; - function listenTo(store: Store, handler: string); - function setState(state: any); + function listenTo(store: Store, handler: string):void; + function setState(state: any):void; } declare module "reflux" {