The file path of the file to process.
Promise The default export of the processed module.
Processing a TypeScript file:
import FileInterface from "./Interface/File.js";const file: FileInterface = async (Path) => { if (Path.endsWith(".ts")) { // Transpile TypeScript to JavaScript } // Import and return the module}; Copy
import FileInterface from "./Interface/File.js";const file: FileInterface = async (Path) => { if (Path.endsWith(".ts")) { // Transpile TypeScript to JavaScript } // Import and return the module};
biome-ignore lint/suspicious/noExplicitAny:
Param: Path
The file path of the file to process.
Returns
Promise The default export of the processed module.
Example
Processing a TypeScript file: