Skip to content

Commit

Permalink
Merge pull request #157 from iguessitsokay/types-withoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra authored Feb 19, 2021
2 parents 413fa78 + 0ab826b commit acd0a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tapable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
promise(...args: AsArray<T>): Promise<R>;
tap(options: string | Tap & IfSet<AdditionalOptions>, fn: (...args: AsArray<T>) => R): void;
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Hook<T, R>;
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, "call" | "callAsync" | "promise">;
}

export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
Expand Down

0 comments on commit acd0a66

Please sign in to comment.