UNPKG

@rs-box/ez-flow

Version:
16 lines (15 loc) 529 B
export declare class WorkContext<Type = any> { static CTX_RESULT: string; static CTX_RESULT_LIST: string; private map; constructor(map?: Map<string, Type>); get(key: string): Type | undefined; set(key: string, value: Type): void; delete(key: string): void; has(key: string): boolean; clear(): void; forEach(callbackFn: (value: Type, key: string, map: Map<string, Type>) => void): void; asMap(): Map<string, Type>; hasResult(): boolean; isResultSingle(): boolean | undefined; }