From 59f3967a45802b75fb396ed9a768bcba0f5dccff Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 23 Nov 2024 22:31:51 +0200 Subject: [PATCH] --- Target/Function/Build.d.ts | 8 +------- Target/Function/Exec.d.ts | 1 - Target/Function/File.d.ts | 1 - Target/Function/JSON.d.ts | 1 - Target/Interface/Build.d.ts | 40 ++++++++++++++++-------------------- Target/Interface/Exec.d.ts | 33 ++++++++++++++--------------- Target/Interface/File.d.ts | 28 ++++++++++++------------- Target/Interface/JSON.d.ts | 28 ++++++++++++------------- Target/Variable/ESBuild.d.ts | 1 - 9 files changed, 62 insertions(+), 79 deletions(-) diff --git a/Target/Function/Build.d.ts b/Target/Function/Build.d.ts index 092d77a0..222848da 100644 --- a/Target/Function/Build.d.ts +++ b/Target/Function/Build.d.ts @@ -1,5 +1,4 @@ import type Interface from "../Interface/Build.js"; - /** * @module Build * @@ -9,10 +8,5 @@ export default _default; export declare const Exec: import("../Interface/Exec.js").default; export declare const Merge: (Target: T, Source: T) => T; export declare const Pipe: string[]; -export declare const extname: (path: string) => string, - basename: (path: string, suffix?: string) => string, - relative: (from: string, to: string) => string, - dirname: (path: string) => string, - normalize: (path: string) => string, - sep: "\\" | "/"; +export declare const extname: (path: string) => string, basename: (path: string, suffix?: string) => string, relative: (from: string, to: string) => string, dirname: (path: string) => string, normalize: (path: string) => string, sep: "\\" | "/"; export declare const Current: string; diff --git a/Target/Function/Exec.d.ts b/Target/Function/Exec.d.ts index 7e89b174..e11c46b7 100644 --- a/Target/Function/Exec.d.ts +++ b/Target/Function/Exec.d.ts @@ -1,5 +1,4 @@ import type Interface from "../Interface/Exec.js"; - /** * @module Exec * diff --git a/Target/Function/File.d.ts b/Target/Function/File.d.ts index 6831db0b..c432f2b8 100644 --- a/Target/Function/File.d.ts +++ b/Target/Function/File.d.ts @@ -1,5 +1,4 @@ import type Interface from "../Interface/File.js"; - /** * @module File * diff --git a/Target/Function/JSON.d.ts b/Target/Function/JSON.d.ts index 3f9638a0..b65f06e6 100644 --- a/Target/Function/JSON.d.ts +++ b/Target/Function/JSON.d.ts @@ -1,5 +1,4 @@ import type Interface from "../Interface/JSON.js"; - /** * @module JSON * diff --git a/Target/Interface/Build.d.ts b/Target/Interface/Build.d.ts index 478edd17..0ffb6571 100644 --- a/Target/Interface/Build.d.ts +++ b/Target/Interface/Build.d.ts @@ -1,29 +1,25 @@ import type { Pattern } from "fast-glob"; - /** * @module Build * */ export default interface Interface { - /** - * Represents a function that processes file patterns. - * - * @param File - An array of file patterns to be processed. Each pattern can include wildcards (*) to match multiple files. - * - * @param Option - An optional object that can contain two properties. - * - * @param Option.ESBuild - A string representing the ESBuild option. - * - * @param Option.TypeScript - A string representing the TypeScript option. - * - */ - ( - File: Pattern[], - Option?: { - ESBuild?: string; - TypeScript?: string; - Watch?: boolean; - Exclude?: Pattern[]; - }, - ): Promise; + /** + * Represents a function that processes file patterns. + * + * @param File - An array of file patterns to be processed. Each pattern can include wildcards (*) to match multiple files. + * + * @param Option - An optional object that can contain two properties. + * + * @param Option.ESBuild - A string representing the ESBuild option. + * + * @param Option.TypeScript - A string representing the TypeScript option. + * + */ + (File: Pattern[], Option?: { + ESBuild?: string; + TypeScript?: string; + Watch?: boolean; + Exclude?: Pattern[]; + }): Promise; } diff --git a/Target/Interface/Exec.d.ts b/Target/Interface/Exec.d.ts index c61a974e..3159297b 100644 --- a/Target/Interface/Exec.d.ts +++ b/Target/Interface/Exec.d.ts @@ -3,22 +3,19 @@ * */ export default interface Interface { - /** - * The 'Exec' function is an asynchronous function that executes a command and logs the - * stdout and stderr of the child process. - * - * @param Command - The 'Command' parameter is a string that represents the - * command you want to execute. It can be any valid command that can be executed in a - * terminal or command prompt. - * - * @param Echo - An optional parameter that controls whether the stdout and stderr - * of the child process should be logged. If set to 'false', no logging will occur. If set - * to a function, the function will be called with the stdout and stderr data as a parameter for custom - * logging. If not provided, stdout and stderr will be logged to the console by default. - * - */ - ( - Command: string, - Echo?: false | ((Return: any, _Error?: boolean) => Promise), - ): Promise; + /** + * The 'Exec' function is an asynchronous function that executes a command and logs the + * stdout and stderr of the child process. + * + * @param Command - The 'Command' parameter is a string that represents the + * command you want to execute. It can be any valid command that can be executed in a + * terminal or command prompt. + * + * @param Echo - An optional parameter that controls whether the stdout and stderr + * of the child process should be logged. If set to 'false', no logging will occur. If set + * to a function, the function will be called with the stdout and stderr data as a parameter for custom + * logging. If not provided, stdout and stderr will be logged to the console by default. + * + */ + (Command: string, Echo?: false | ((Return: any, _Error?: boolean) => Promise)): Promise; } diff --git a/Target/Interface/File.d.ts b/Target/Interface/File.d.ts index 96959e35..9016843d 100644 --- a/Target/Interface/File.d.ts +++ b/Target/Interface/File.d.ts @@ -3,18 +3,18 @@ * */ 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; + /** + * 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; } diff --git a/Target/Interface/JSON.d.ts b/Target/Interface/JSON.d.ts index 3b5f8df0..aae841df 100644 --- a/Target/Interface/JSON.d.ts +++ b/Target/Interface/JSON.d.ts @@ -3,18 +3,18 @@ * */ export default interface Interface { - /** - * The function 'JSON' is a TypeScript function that reads a JSON file and returns its - * parsed content. - * - * @param File - The `File` parameter is a string that represents the name or - * path of the JSON file that you want to parse. - * - * @param From - The `From` parameter is an optional string that represents - * the directory path from which the JSON file should be loaded. If `From` is provided, - * it will be used as the base directory path. If `From` is not provided, the current - * directory will be used as the base directory path. - * - */ - (File: string, From?: string): Promise>; + /** + * The function 'JSON' is a TypeScript function that reads a JSON file and returns its + * parsed content. + * + * @param File - The `File` parameter is a string that represents the name or + * path of the JSON file that you want to parse. + * + * @param From - The `From` parameter is an optional string that represents + * the directory path from which the JSON file should be loaded. If `From` is provided, + * it will be used as the base directory path. If `From` is not provided, the current + * directory will be used as the base directory path. + * + */ + (File: string, From?: string): Promise>; } diff --git a/Target/Variable/ESBuild.d.ts b/Target/Variable/ESBuild.d.ts index 3b97e076..d9224aba 100644 --- a/Target/Variable/ESBuild.d.ts +++ b/Target/Variable/ESBuild.d.ts @@ -1,5 +1,4 @@ import type { BuildOptions } from "esbuild"; - /** * @module ESBuild *