Skip to content

Commit 778ec18

Browse files
Updated LKG.
1 parent 654cbd9 commit 778ec18

File tree

10 files changed

+1400
-1170
lines changed

10 files changed

+1400
-1170
lines changed

lib/lib.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ interface ArrayBuffer {
12251225
interface ArrayBufferConstructor {
12261226
prototype: ArrayBuffer;
12271227
new (byteLength: number): ArrayBuffer;
1228-
isView(arg: any): boolean;
1228+
isView(arg: any): arg is ArrayBufferView;
12291229
}
12301230
declare var ArrayBuffer: ArrayBufferConstructor;
12311231

lib/lib.core.es6.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ interface ArrayBuffer {
12251225
interface ArrayBufferConstructor {
12261226
prototype: ArrayBuffer;
12271227
new (byteLength: number): ArrayBuffer;
1228-
isView(arg: any): boolean;
1228+
isView(arg: any): arg is ArrayBufferView;
12291229
}
12301230
declare var ArrayBuffer: ArrayBufferConstructor;
12311231

lib/lib.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ interface ArrayBuffer {
12251225
interface ArrayBufferConstructor {
12261226
prototype: ArrayBuffer;
12271227
new (byteLength: number): ArrayBuffer;
1228-
isView(arg: any): boolean;
1228+
isView(arg: any): arg is ArrayBufferView;
12291229
}
12301230
declare var ArrayBuffer: ArrayBufferConstructor;
12311231

lib/lib.es6.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ interface ArrayBuffer {
12251225
interface ArrayBufferConstructor {
12261226
prototype: ArrayBuffer;
12271227
new (byteLength: number): ArrayBuffer;
1228-
isView(arg: any): boolean;
1228+
isView(arg: any): arg is ArrayBufferView;
12291229
}
12301230
declare var ArrayBuffer: ArrayBufferConstructor;
12311231

lib/tsc.js

Lines changed: 372 additions & 270 deletions
Large diffs are not rendered by default.

lib/tsserver.js

Lines changed: 324 additions & 276 deletions
Large diffs are not rendered by default.

lib/typescript.d.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ declare namespace ts {
328328
FirstNode = 135,
329329
}
330330
const enum NodeFlags {
331+
None = 0,
331332
Export = 1,
332333
Ambient = 2,
333334
Public = 16,
@@ -954,7 +955,7 @@ declare namespace ts {
954955
getSourceFile(fileName: string): SourceFile;
955956
getCurrentDirectory(): string;
956957
}
957-
interface ParseConfigHost extends ModuleResolutionHost {
958+
interface ParseConfigHost {
958959
readDirectory(rootDir: string, extension: string, exclude: string[]): string[];
959960
}
960961
interface WriteFileCallback {
@@ -1428,6 +1429,7 @@ declare namespace ts {
14281429
newLine: string;
14291430
useCaseSensitiveFileNames: boolean;
14301431
write(s: string): void;
1432+
writesToTty?(): boolean;
14311433
readFile(path: string, encoding?: string): string;
14321434
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
14331435
watchFile?(path: string, callback: (path: string, removed?: boolean) => void): FileWatcher;
@@ -1521,11 +1523,10 @@ declare namespace ts {
15211523
*/
15221524
function collapseTextChangeRangesAcrossMultipleVersions(changes: TextChangeRange[]): TextChangeRange;
15231525
function getTypeParameterOwner(d: Declaration): Declaration;
1524-
function arrayStructurallyIsEqualTo<T>(array1: Array<T>, array2: Array<T>): boolean;
15251526
}
15261527
declare namespace ts {
1527-
function getNodeConstructor(kind: SyntaxKind): new () => Node;
1528-
function createNode(kind: SyntaxKind): Node;
1528+
function getNodeConstructor(kind: SyntaxKind): new (pos?: number, end?: number) => Node;
1529+
function createNode(kind: SyntaxKind, pos?: number, end?: number): Node;
15291530
function forEachChild<T>(node: Node, cbNode: (node: Node) => T, cbNodeArray?: (nodes: Node[]) => T): T;
15301531
function createSourceFile(fileName: string, sourceText: string, languageVersion: ScriptTarget, setParentNodes?: boolean): SourceFile;
15311532
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
@@ -1564,10 +1565,15 @@ declare namespace ts {
15641565
/**
15651566
* Parse the contents of a config file (tsconfig.json).
15661567
* @param json The contents of the config file to parse
1568+
* @param host Instance of ParseConfigHost used to enumerate files in folder.
15671569
* @param basePath A root directory to resolve relative path entries in the config
15681570
* file to. e.g. outDir
15691571
*/
15701572
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string): ParsedCommandLine;
1573+
function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string): {
1574+
options: CompilerOptions;
1575+
errors: Diagnostic[];
1576+
};
15711577
}
15721578
declare namespace ts {
15731579
/** The version of the language service API */

lib/typescript.js

Lines changed: 340 additions & 306 deletions
Large diffs are not rendered by default.

lib/typescriptServices.d.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ declare namespace ts {
328328
FirstNode = 135,
329329
}
330330
const enum NodeFlags {
331+
None = 0,
331332
Export = 1,
332333
Ambient = 2,
333334
Public = 16,
@@ -954,7 +955,7 @@ declare namespace ts {
954955
getSourceFile(fileName: string): SourceFile;
955956
getCurrentDirectory(): string;
956957
}
957-
interface ParseConfigHost extends ModuleResolutionHost {
958+
interface ParseConfigHost {
958959
readDirectory(rootDir: string, extension: string, exclude: string[]): string[];
959960
}
960961
interface WriteFileCallback {
@@ -1428,6 +1429,7 @@ declare namespace ts {
14281429
newLine: string;
14291430
useCaseSensitiveFileNames: boolean;
14301431
write(s: string): void;
1432+
writesToTty?(): boolean;
14311433
readFile(path: string, encoding?: string): string;
14321434
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
14331435
watchFile?(path: string, callback: (path: string, removed?: boolean) => void): FileWatcher;
@@ -1521,11 +1523,10 @@ declare namespace ts {
15211523
*/
15221524
function collapseTextChangeRangesAcrossMultipleVersions(changes: TextChangeRange[]): TextChangeRange;
15231525
function getTypeParameterOwner(d: Declaration): Declaration;
1524-
function arrayStructurallyIsEqualTo<T>(array1: Array<T>, array2: Array<T>): boolean;
15251526
}
15261527
declare namespace ts {
1527-
function getNodeConstructor(kind: SyntaxKind): new () => Node;
1528-
function createNode(kind: SyntaxKind): Node;
1528+
function getNodeConstructor(kind: SyntaxKind): new (pos?: number, end?: number) => Node;
1529+
function createNode(kind: SyntaxKind, pos?: number, end?: number): Node;
15291530
function forEachChild<T>(node: Node, cbNode: (node: Node) => T, cbNodeArray?: (nodes: Node[]) => T): T;
15301531
function createSourceFile(fileName: string, sourceText: string, languageVersion: ScriptTarget, setParentNodes?: boolean): SourceFile;
15311532
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
@@ -1564,10 +1565,15 @@ declare namespace ts {
15641565
/**
15651566
* Parse the contents of a config file (tsconfig.json).
15661567
* @param json The contents of the config file to parse
1568+
* @param host Instance of ParseConfigHost used to enumerate files in folder.
15671569
* @param basePath A root directory to resolve relative path entries in the config
15681570
* file to. e.g. outDir
15691571
*/
15701572
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string): ParsedCommandLine;
1573+
function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string): {
1574+
options: CompilerOptions;
1575+
errors: Diagnostic[];
1576+
};
15711577
}
15721578
declare namespace ts {
15731579
/** The version of the language service API */

0 commit comments

Comments
 (0)