Skip to content

Commit

Permalink
fix(Promise): edited promise never type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed May 13, 2021
1 parent 680db9c commit 96481de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/promise/never.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { noop } from '../function/noop';
* }
* ```
*/
export const NEVER = new Promise(noop);
export const NEVER = new Promise<any>(noop);

/**
* Creates a promise which never resolves
Expand All @@ -34,6 +34,6 @@ export const NEVER = new Promise(noop);
*
* @returns the promise which never resolves
*/
export function never(): Promise<unknown> {
export function never<T = never>(): Promise<T> {
return NEVER;
}

0 comments on commit 96481de

Please sign in to comment.