* Use the right types for the callback

* Update the apply method

* Add paramters to callback

* Fix lint errors
This commit is contained in:
Mohamed Hegazy
2016-12-15 12:10:47 -08:00
committed by GitHub
parent c097058ddc
commit 1cf9dfb2aa
+2 -2
View File
@@ -25,9 +25,9 @@ interface F1 extends NodeJS.EventEmitter {
init(initState: string): F1;
destroy(): void;
apply(): void;
apply(pathToTarget: string, target: any, parserDefinition: any): void;
go(state: string, callback?: (...args: any[]) => void): F1;
go(state: string, callback?: (state: any, currentState: any) => void): F1;
set(state: string): F1;
step(deltaTime: number): F1;
update(): F1;