UNPKG
pifi
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
Immediately invoked [pify](https://github.com/sindresorhus/pify)
github.com/LinusU/pifi
LinusU/pifi
pifi
/
index.d.ts
4 lines
(3 loc)
•
187 B
TypeScript
View Raw
1
2
3
4
declare
type
Executor
<T> =
(
cb
: (err?:
Error
|
null
, result?: T) =>
void
) =>
void
declare
function
pifi<T> (
fn
:
Executor
<T>,
promiseModule
?:
PromiseConstructor
):
Promise
<T>
export
= pifi