mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Added stubs to ChakraHost interface for readDirectoryNames/readFileNames
This commit is contained in:
@@ -62,6 +62,8 @@ namespace ts {
|
||||
readFile(path: string): string;
|
||||
writeFile(path: string, contents: string): void;
|
||||
readDirectory(path: string, extension?: string, exclude?: string[]): string[];
|
||||
readDirectoryNames(path: string): string[];
|
||||
readFileNames(path: string): string[];
|
||||
};
|
||||
|
||||
export var sys: System = (function () {
|
||||
@@ -537,6 +539,8 @@ namespace ts {
|
||||
getExecutingFilePath: () => ChakraHost.executingFile,
|
||||
getCurrentDirectory: () => ChakraHost.currentDirectory,
|
||||
readDirectory: ChakraHost.readDirectory,
|
||||
readFileNames: ChakraHost.readFileNames,
|
||||
readDirectoryNames: ChakraHost.readDirectoryNames,
|
||||
exit: ChakraHost.quit,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user