UNPKG

denoify

Version:

For NPM module authors that would like to support Deno but do not want to write and maintain a port.

13 lines (12 loc) 388 B
/** Apply a transformation function to every file of directory */ export declare function transformCodebase(params: { srcDirPath: string; destDirPath: string; transformSourceCodeString: (params: { sourceCode: string; filePath: string; }) => Promise<{ modifiedSourceCode: string; newFileName?: string; } | undefined>; }): Promise<void>;