Skip to content

Commit

Permalink
add taps type to hook class
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcyber committed Sep 10, 2021
1 parent acd0a66 commit 3288a62
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 3288a62

Please sign in to comment.