Skip to content

Commit 20bb652

Browse files
committed
improve typings for options
1 parent 3bfa755 commit 20bb652

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ declare module "kareem" {
1111
clone(): Kareem;
1212
merge(other: Kareem, clone?: boolean): this;
1313

14-
createWrapper(name: string, fn: Function, context?: any, options?: any): Function;
14+
createWrapper(name: string, fn: Function, context?: any, options?: Record<string, any>): Function;
1515
createWrapperSync(name: string, fn: Function): Function;
1616
hasHooks(name: string): boolean;
1717
filter(fn: Function): Kareem;
1818

19-
wrap(name: string, fn: Function, context: any, args: any[], options?: any): Function;
19+
wrap(name: string, fn: Function, context: any, args: any[], options?: Record<string, any>): Function;
2020

2121
execPostSync(name: string, context: any, args: any[]): any;
22-
execPost(name: string, context: any, args: any[], options?: any, callback?: Function): void;
22+
execPost(name: string, context: any, args: any[], options?: Record<string, any>, callback?: Function): void;
2323
execPreSync(name: string, context: any, args: any[]): any;
2424
execPre(name: string, context: any, args: any[], callback?: Function): void;
2525
}

0 commit comments

Comments
 (0)