From 430537fa7ae4fac13ccc51aa9c4021a0c3ff3cc9 Mon Sep 17 00:00:00 2001 From: kamil bukum Date: Sat, 1 Jul 2017 03:14:17 +0300 Subject: [PATCH] * fixed not found Callback problem. --- types/framebus/index.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/types/framebus/index.d.ts b/types/framebus/index.d.ts index 7b9fab3d44..88f6d5e238 100644 --- a/types/framebus/index.d.ts +++ b/types/framebus/index.d.ts @@ -10,16 +10,16 @@ export as namespace framebus; export interface FrameBus { - publish(event: string, args: any[], callback: Callback): boolean; - pub(event: string, args: any[], callback: Callback): boolean; - trigger(event: string, args: any[], callback: Callback): boolean; - emit(event: string, args: any[], callback: Callback): boolean; - subscribe(event: string, fn: Callback): boolean; - sub(event: string, fn: Callback): boolean; - on(event: string, fn: Callback): boolean; - unsubscribe(event: string, fn: Callback): boolean; - unsub(event: string, fn: Callback): boolean; - off(event: string, fn: Callback): boolean; + publish(event: string, args: any[], callback: (...args: any[]) => any): boolean; + pub(event: string, args: any[], callback: (...args: any[]) => any): boolean; + trigger(event: string, args: any[], callback: (...args: any[]) => any): boolean; + emit(event: string, args: any[], callback: (...args: any[]) => any): boolean; + subscribe(event: string, fn: (...args: any[]) => any): boolean; + sub(event: string, fn: (...args: any[]) => any): boolean; + on(event: string, fn: (...args: any[]) => any): boolean; + unsubscribe(event: string, fn: (...args: any[]) => any): boolean; + unsub(event: string, fn: (...args: any[]) => any): boolean; + off(event: string, fn: (...args: any[]) => any): boolean; } /*~ If this module has methods, declare them as functions like so. */