@cspell/cspell-tools
Version:
Tools to assist with the development of cSpell
38 lines • 1.26 kB
text/typescript
//#region src/config/config.d.ts
interface BTrieOptions {
/** compress the resulting file */
compress?: boolean | undefined;
/** optimize the trie into a DAWG */
optimize?: boolean | undefined;
/** use a string table to reduce size */
useStringTable?: boolean | undefined;
}
//#endregion
//#region src/compiler/logger.d.ts
type Logger = (message?: any, ...optionalParams: any[]) => void;
//#endregion
//#region src/compiler/bTrie.d.ts
interface GenerateBTrieOptions extends BTrieOptions {
/** output directory */
output?: string;
logger?: Logger;
}
//#endregion
//#region src/bTrie.d.ts
declare function generateBTrie(files: string[], options: GenerateBTrieOptions): Promise<void>;
//#endregion
//#region src/build.d.ts
interface BuildOptions {
/** Optional path to config file */
config?: string | undefined;
/** Used to resolve relative paths in the config. */
root?: string | undefined;
/** Current working directory */
cwd?: string | undefined;
/** Conditional build based upon the targets matching the `checksum.txt` file. */
conditional?: boolean;
}
declare function build(targets: string[] | undefined, options: BuildOptions): Promise<void>;
//#endregion
export { build, generateBTrie };
//# sourceMappingURL=index.d.mts.map