DefinitelyTyped/types/universalify/index.d.ts
Richie Bendall ff8cb219da
chore: Bump universalify version (#43252)
* chore: Bump universalify version

* chore: Fix version
2020-03-20 11:19:52 -04:00

8 lines
431 B
TypeScript

// Type definitions for universalify 1.0
// Project: https://github.com/RyanZim/universalify#readme
// Definitions by: Richie Bendall <https://github.com/Richienb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function fromCallback(fn: (...args: any[]) => any): (...args: any[]) => Promise<any> | void;
export function fromPromise(fn: (...args: any[]) => any): (...args: any[]) => Promise<any> | void;