UNPKG

@chief-editor/flow

Version:

Old核心数据流

6 lines (5 loc) 407 B
import { IHookConfig } from '@chief-editor/base'; import { FlowBrick } from '../lib/FlowBrick'; import { IFlowBrickConfig } from '../types'; export declare type IFlowHooksMap = Record<string, (params: unknown) => Promise<unknown>>; export declare function extractHooks<V, DS, DP, CG, ST>(brick: FlowBrick<V, DS, DP, CG, ST>, config: IFlowBrickConfig<V, DS, DP, CG, ST>, hooks?: IHookConfig): IFlowHooksMap;