@playform/eliminate
Version:
Eliminate ↘️
21 lines (20 loc) • 701 B
TypeScript
/**
* @module File
*
*/
export default interface Interface {
/**
* This function asynchronously processes a file located at the given path. If the file is a TypeScript
* (.ts) file, it performs the following steps:
* 1. Converts TypeScript code to JavaScript.
* 2. Creates a JavaScript module and emits it.
* 3. Writes the transpiled JavaScript code to a new file with a .js extension.
*
* Finally, it imports and returns the default export of the processed JavaScript module.
*
* @param Path - The 'Path' parameter is a string that represents the file path of the file
* you want to process.
*
*/
(Path: string): Promise<any>;
}