From 1df78dc213a91ae9c990532479e00022f6334ac4 Mon Sep 17 00:00:00 2001 From: vvakame Date: Sun, 19 Jul 2015 17:55:03 +0900 Subject: [PATCH] fix fluxxor/fluxxor.d.ts --- fluxxor/fluxxor.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/fluxxor/fluxxor.d.ts b/fluxxor/fluxxor.d.ts index e8b89a66d..c6a5849d1 100644 --- a/fluxxor/fluxxor.d.ts +++ b/fluxxor/fluxxor.d.ts @@ -3,7 +3,7 @@ // Definitions by: Yuichi Murata // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// /// declare module Fluxxor { @@ -14,7 +14,7 @@ declare module Fluxxor { doDispatchLoop(action: Function): void; waitForStores(store: Store, stores: string[], fn: Function): void; } - + class Flux extends EventEmitter3.EventEmitter { constructor(stores: any, actions: any); addActions(actions: any): void; @@ -26,40 +26,40 @@ declare module Fluxxor { stores: any; actions: any; } - + interface Store extends EventEmitter3.EventEmitter { bindActions(...args: Array): void; bindActions(args: Array): void; waitFor(stores: string[], fn: Function): void; } - + interface StoreSpec { initialize?(instance?: any, options?: {}): void; actions?: any; } - + interface StoreClass { new (options?: {}): any; } - + interface Context { flux: Flux; } - + interface FluxMixin { getFlux(): Flux; } - + interface FluxChildMixin { getFlux(): Flux; } - + interface StoreWatchMixin { getStateFromFlux(): StoreState; } - - function FluxMixin(React: React.Exports): FluxMixin; - function FluxChildMixin(React: React.Exports): FluxChildMixin; + + function FluxMixin(React: typeof __React): FluxMixin; + function FluxChildMixin(React: typeof __React): FluxChildMixin; function StoreWatchMixin(...storeNames: string[]): StoreWatchMixin; function createStore(spec: StoreSpec): StoreClass; var version: string;