typescript-file-copy-plugin
Version:
[](https://www.npmjs.com/package/typescript-file-copy-plugin)  [ • 764 B
text/typescript
import * as ts from 'typescript';
interface FileCopyConfig {
/**
* The source file or directory to copy.
*/
src: string;
/**
* The destination file or directory to copy to.
*/
dest: string;
}
interface CopyFilesPluginOptions {
copy: FileCopyConfig[];
}
/**
* The main plugin function.
* Validates the options, sets up post compilation file copying,
* and creates the necessary transformer.
*
* @param program - The TypeScript program
* @param pluginOptions - The options for the plugin
* @returns A factory function for creating transformers
*/
declare function export_default(program: ts.Program, pluginOptions: CopyFilesPluginOptions): ts.TransformerFactory<ts.SourceFile>;
export { export_default as default };