UNPKG

@attack-monkey/impure

Version:

A light-weight wrapper for managing impure code

5 lines (4 loc) 181 B
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;