Create type definition for 'promise-any' (#4055)
This commit is contained in:
parent
6439a6c63f
commit
bbcdf1bb8a
2 changed files with 8 additions and 1 deletions
7
src/@types/promise-any.d.ts
vendored
Normal file
7
src/@types/promise-any.d.ts
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
declare module 'promise-any' {
|
||||
function promiseAny<T>(iterable: Iterable<T | PromiseLike<T>>): Promise<T>;
|
||||
|
||||
namespace promiseAny {} // Hack
|
||||
|
||||
export = promiseAny;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue