Skip to content

Commit 5ce6d8c

Browse files
authored
Merge pull request #161 from chengcyber/feat-hook-type
add taps type to hook class
2 parents acd0a66 + 3288a62 commit 5ce6d8c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tapable.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ type ArgumentNames<T extends any[]> = FixedSizeArray<T["length"], string>;
5858
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
5959
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
6060
name: string | undefined;
61+
taps: FullTap[];
6162
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
6263
isUsed(): boolean;
6364
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;

0 commit comments

Comments
 (0)