UNPKG
@attack-monkey/impure
Version:
latest (1.0.1)
1.0.1
1.0.0
A light-weight wrapper for managing impure code
github.com/attack-monkey/impure
attack-monkey/impure
@attack-monkey/impure
/
lib
/
index.d.ts
5 lines
(4 loc)
•
181 B
TypeScript
View Raw
1
2
3
4
5
export
declare
const
impure
: <B>
(
fn1
: () => B
) =>
{
then
:
(
fn2
: (b: B) =>
any
) =>
void
; };
export
declare
const
asyncImpure
: <B>
(
fn
: (resolve: (b: B) =>
void
) =>
void
) =>
void
;