Skip to content

Commit

Permalink
fix: Executor returns unknown
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Shemsedinov <[email protected]>
  • Loading branch information
c-0d3-r and tshemsedinov authored Jan 1, 2025
1 parent 0f4c8a3 commit 876b889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metautil.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export function once(emitter: EventEmitter, name: string): Promise<unknown>;

type Resolve<T = unknown> = (value: T) => void;
type Reject = (reason?: Error | unknown) => void;
type Executor<T = unknown> = (resolve: Resolve<T>, reject?: Reject) => void;
type Executor<T = unknown> = (resolve: Resolve<T>, reject?: Reject) => unknown;

interface Thenable<T = unknown> {
then(resolve: Resolve<T>, reject: Reject): unknown;
Expand Down

0 comments on commit 876b889

Please sign in to comment.