Skip to content

Commit

Permalink
fix(typings): fixed typing to align with TypeScript internals
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Mar 3, 2021
1 parent 3a42733 commit 976f9ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ export function logger(
(
!promise.__tracedError
? ""
: `[ Stacktrace altered by https://github.com/grantila/trace-unhandled ]\n`
: `[ Stacktrace altered by ` +
`https://github.com/grantila/trace-unhandled ]\n`
) +
stack
);
}

const state: { resolve: any; reject: any; } = { resolve: null, reject: null };

export type PromiseResolver< T > = ( value?: T | PromiseLike< T > ) => void;
export type PromiseResolver< T > = ( value: T | PromiseLike< T > ) => void;
export type PromiseRejecter = ( reason?: any ) => void;

export type PromiseConstructor< T > =
Expand Down

0 comments on commit 976f9ff

Please sign in to comment.