ts-typedfiles
Version:
Generate filepaths from directory structure
13 lines (11 loc) • 473 B
TypeScript
/**
* Generates a TypeScript file containing type definitions for file paths
* within a specified directory.
*
* @param directoryPath The path to the directory to scan.
* @param outputFilePath The path to the output TypeScript file.
* @param typeName The name of the type to be generated. Defaults to
* "FilePath".
*/
declare function generateFilePathsType(directoryPath: string, outputFilePath: string, typeName: string): void;
export { generateFilePathsType };