UNPKG

subflow

Version:

Safety your data flow in TypeScript with flow-based primitives.

4 lines (3 loc) 266 B
import { Methods, FlowErrorParams, ErrorFlow } from '../types/core'; export declare const errorFlow: <T, M extends Methods<T> = {}>(error: FlowErrorParams<T>) => ErrorFlow<T> & M; export declare function isError<E>(flow: ErrorFlow<any> | E): flow is ErrorFlow<any>;