UNPKG

974 BTypeScriptView Raw
1import * as ts from 'typescript';
2import { Extra } from '../parser-options';
3/**
4 * Clear all of the parser caches.
5 * This should only be used in testing to ensure the parser is clean between tests.
6 */
7declare function clearWatchCaches(): void;
8/**
9 * Calculate project environments using options provided by consumer and paths from config
10 * @param code The code being linted
11 * @param filePathIn The path of the file being parsed
12 * @param extra.tsconfigRootDir The root directory for relative tsconfig paths
13 * @param extra.projects Provided tsconfig paths
14 * @returns The programs corresponding to the supplied tsconfig paths
15 */
16declare function getProgramsForProjects(code: string, filePathIn: string, extra: Extra): ts.Program[];
17declare function createWatchProgram(tsconfigPath: string, extra: Extra): ts.WatchOfConfigFile<ts.BuilderProgram>;
18export { clearWatchCaches, createWatchProgram, getProgramsForProjects };
19//# sourceMappingURL=createWatchProgram.d.ts.map
\No newline at end of file