Skip to content

Commit

Permalink
improve typings for options
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Mar 4, 2024
1 parent 3bfa755 commit 20bb652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ declare module "kareem" {
clone(): Kareem;
merge(other: Kareem, clone?: boolean): this;

createWrapper(name: string, fn: Function, context?: any, options?: any): Function;
createWrapper(name: string, fn: Function, context?: any, options?: Record<string, any>): Function;
createWrapperSync(name: string, fn: Function): Function;
hasHooks(name: string): boolean;
filter(fn: Function): Kareem;

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

execPostSync(name: string, context: any, args: any[]): any;
execPost(name: string, context: any, args: any[], options?: any, callback?: Function): void;
execPost(name: string, context: any, args: any[], options?: Record<string, any>, callback?: Function): void;
execPreSync(name: string, context: any, args: any[]): any;
execPre(name: string, context: any, args: any[], callback?: Function): void;
}
Expand Down

0 comments on commit 20bb652

Please sign in to comment.