From 1cf9dfb2aae7aef5ae75158d39d79e70aea4a5b6 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 15 Dec 2016 12:10:47 -0800 Subject: [PATCH] Ports https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13284 (#13375) * Use the right types for the callback * Update the apply method * Add paramters to callback * Fix lint errors --- f1/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/f1/index.d.ts b/f1/index.d.ts index d5df41d828..82c5cf8c4d 100644 --- a/f1/index.d.ts +++ b/f1/index.d.ts @@ -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;