UNPKG

@onesy/utils

Version:
7 lines (6 loc) 247 B
import { TMethod } from './models'; export interface IOptions { onError?: 'reject' | 'resolve'; } declare const promisify: <T>(method: TMethod | Promise<any>, options_?: IOptions) => (...args: any[]) => Promise<any>; export default promisify;