UNPKG

taggedjs

Version:

tagged template reactive html

9 lines (8 loc) 604 B
import { SubjectLike, UnaryFunction } from './subject.utils.js'; type WillCallback<T, R> = (lastValue: T, resolve: (result: R) => void) => void; export declare function willCallback<T = any, R = any>(callback: WillCallback<T, R>): UnaryFunction<T, R, any>; /** .pipe( promise((x) => Promise.resolve(44)) ) */ export declare function willPromise<T, H>(callback: (lastValue: T) => Promise<H>): UnaryFunction<T, H, any>; /** .pipe( willSubscribe((x) => new ValueSubject(44)) ) */ export declare const willSubscribe: <T, H>(callback: (lastValue: T) => SubjectLike<H>) => UnaryFunction<T, H, any>; export {};