DefinitelyTyped/types/universalify/index.d.ts
Richie Bendall 16ae5fd3c4 feat: Add typings for universalify (#41546)
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-01-17 11:40:06 -05:00

8 lines
431 B
TypeScript

// Type definitions for universalify 0.1
// 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;