-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
087c4ad
commit 9da18a7
Showing
2 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @module File | ||
* | ||
*/ | ||
export default interface Type { | ||
/** | ||
* 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 {string} Path - The 'Path' parameter is a string that represents the file path of the file | ||
* you want to process. | ||
* | ||
* @returns {Promise<any>} A promise that resolves with the default export of the module imported using the provided 'Path'. | ||
*/ | ||
// rome-ignore lint/suspicious/noExplicitAny: <explanation> | ||
(Path: string): Promise<any>; | ||
} |