tranz
Version:
The framework for transform anything
15 lines (14 loc) • 515 B
TypeScript
import { Processor, ProcessorCore } from './index';
export declare type Options = {
cwd?: string;
};
export declare function resolveProcessor(moduleId: string, { cwd, allowShell }?: Options & {
allowShell?: boolean;
}): {
type: 'module' | 'shell';
value: string;
};
export declare function normalizeProcessorPath(processor: Processor, { cwd }?: {
cwd: string;
}): [string, any] | ProcessorCore;
export default function normalizeProcessor(processor: Processor, { cwd }?: Options): ProcessorCore;