UNPKG

@fbltd/async

Version:

Miscellaneous async utils

8 lines (7 loc) 424 B
import { Dependency } from "./dependency.ts"; import { IAllStreamConfig } from "./contracts.ts"; export declare abstract class DepFactory { static ofValue<T>(value: T, config?: Partial<IAllStreamConfig<T>>): Dependency<T>; static ofReaction<T>(fn: () => T, config?: Partial<IAllStreamConfig<T>>): Dependency<T>; static ofDependency<T>(dep: Dependency<T>): import("./dependency.stream.ts").DependencyStream<T>; }