minishouyin/node_modules/config-file-ts/dist/loadTsConfig.d.ts

11 lines
600 B
TypeScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
/** Load a typescript configuration file.
* For speed, the typescript file is transpiled to javascript and cached.
*
* @param T type of default export value in the configuration file
* @param outDir location to store the compiled javascript.
* @returns the default exported value from the configuration file or undefined
*/
export declare function loadTsConfig<T>(tsFile: string, outDir?: string, strict?: boolean): T | undefined;
/** @return the directory that will be used to store transpilation output. */
export declare function defaultOutDir(tsFile: string, programName?: string): string;