- Adding DiscoverTypingsSettings

- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
This commit is contained in:
Jason Ramsay
2016-03-01 18:52:11 -08:00
parent b3ceea3b3d
commit 6aad783db8
3 changed files with 49 additions and 66 deletions

View File

@@ -2436,7 +2436,17 @@ namespace ts {
enableAutoDiscovery?: boolean;
include?: string[];
exclude?: string[];
[option: string]: any;
[option: string]: string[] | boolean;
}
export interface DiscoverTypingsSettings {
fileNames: string[]; // The file names that belong to the same project.
cachePath: string; // The path to the typings cache
projectRootPath: string; // The path to the project root directory
safeListPath: string; // The path used to retrieve the safe list
packageNameToTypingLocation: Map<string>; // The map of package names to their cached typing locations
typingOptions: TypingOptions; // Used to customize the typing inference process
compilerOptions: CompilerOptions; // Used as a source for typing inference
}
export enum ModuleKind {