tranz
Version:
The framework for transform anything
26 lines (25 loc) • 776 B
TypeScript
export declare type ProcessFunction = Function & {
id?: string;
};
export declare type ProcessFunctions = {
id: string;
} & Function[];
export declare type ProcessorCore = ProcessFunction | ProcessFunctions;
export declare type Processor = string | ProcessorCore | [string, any];
declare type ComOptions = {
parallel?: boolean;
name?: string;
} & any;
export declare type Options = ComOptions & {
cwd?: string;
userc?: boolean;
};
export declare type InnerRCOptions = ComOptions & {
processors?: Processor[];
};
export declare type RCOptions = InnerRCOptions & {
[name: string]: InnerRCOptions;
};
export declare const explorer: any;
export default function tranz(input: any, processors?: Processor[], opts?: Options): Promise<any>;
export {};