UNPKG

map-transform-cjs

Version:
15 lines (12 loc) 1.28 kB
import { OperationObject, TransformObject, Path, Pipeline, Operation, TransformDefinition, Options, DataMapperWithState, AsyncDataMapperWithState } from '../types.js'; declare const isOperationType: <T extends OperationObject>(def: TransformObject | OperationObject, prop: string) => def is T; declare const isPath: (def: unknown) => def is Path; declare const isTransformObject: (def: unknown) => def is TransformObject; declare const isPipeline: (def: unknown) => def is Pipeline; declare const isOperation: (def: unknown) => def is Operation; declare const isTransformDefinition: (def: unknown) => def is TransformDefinition; declare const defToOperations: (def: TransformDefinition | undefined, options: Options) => Operation[] | Operation; declare function defToOperation(def: TransformDefinition | undefined, options: Options): Operation; declare function operationToDataMapper(operation: Operation, options: Options): DataMapperWithState | AsyncDataMapperWithState; declare function defToDataMapper(def?: TransformDefinition, options?: Options): DataMapperWithState | AsyncDataMapperWithState; export { defToDataMapper, defToOperation, defToOperations, isOperation, isOperationType, isPath, isPipeline, isTransformDefinition, isTransformObject, operationToDataMapper };