Skip to content

Commit

Permalink
Merge pull request #161 from chengcyber/feat-hook-type
Browse files Browse the repository at this point in the history
add taps type to hook class
  • Loading branch information
sokra authored Sep 13, 2021
2 parents acd0a66 + 3288a62 commit 5ce6d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tapable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type ArgumentNames<T extends any[]> = FixedSizeArray<T["length"], string>;
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
name: string | undefined;
taps: FullTap[];
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
isUsed(): boolean;
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
Expand Down

0 comments on commit 5ce6d8c

Please sign in to comment.