Skip to content

Commit

Permalink
fix(types): be explicit that Settlment is a PromiseSettledResult
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertFischer committed Dec 11, 2020
1 parent d576498 commit 5789aa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ export class Rejection implements PromiseRejectedResult {
/**
* Equivalent to a `PromiseSettledResult`, but specific to our classes.
*/
export type Settlement<T> = Fulfillment<T> | Rejection;
export type Settlement<T> = PromiseSettledResult<T> &
(Fulfillment<T> | Rejection);

0 comments on commit 5789aa9

Please sign in to comment.