Update LKG

This commit is contained in:
Mohamed Hegazy
2017-06-12 17:52:03 -07:00
parent 915b486e84
commit 985682de03
15 changed files with 2568 additions and 2054 deletions
+2 -1
View File
@@ -7567,7 +7567,7 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
new(): DragEvent;
new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
};
interface DynamicsCompressorNode extends AudioNode {
@@ -12308,6 +12308,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
readonly serviceWorker: ServiceWorkerContainer;
readonly webdriver: boolean;
readonly hardwareConcurrency: number;
readonly languages: string[];
getGamepads(): Gamepad[];
javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
+2 -1
View File
@@ -3503,7 +3503,7 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
new(): DragEvent;
new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
};
interface DynamicsCompressorNode extends AudioNode {
@@ -8244,6 +8244,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
readonly serviceWorker: ServiceWorkerContainer;
readonly webdriver: boolean;
readonly hardwareConcurrency: number;
readonly languages: string[];
getGamepads(): Gamepad[];
javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
+2 -1
View File
@@ -3506,7 +3506,7 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
new(): DragEvent;
new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
};
interface DynamicsCompressorNode extends AudioNode {
@@ -8247,6 +8247,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
readonly serviceWorker: ServiceWorkerContainer;
readonly webdriver: boolean;
readonly hardwareConcurrency: number;
readonly languages: string[];
getGamepads(): Gamepad[];
javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
+2 -1
View File
@@ -3510,7 +3510,7 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
new(): DragEvent;
new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
};
interface DynamicsCompressorNode extends AudioNode {
@@ -8251,6 +8251,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
readonly serviceWorker: ServiceWorkerContainer;
readonly webdriver: boolean;
readonly hardwareConcurrency: number;
readonly languages: string[];
getGamepads(): Gamepad[];
javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
+2 -1
View File
@@ -9391,7 +9391,7 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
new(): DragEvent;
new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
};
interface DynamicsCompressorNode extends AudioNode {
@@ -14132,6 +14132,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
readonly serviceWorker: ServiceWorkerContainer;
readonly webdriver: boolean;
readonly hardwareConcurrency: number;
readonly languages: string[];
getGamepads(): Gamepad[];
javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
+2 -1
View File
@@ -3507,7 +3507,7 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
new(): DragEvent;
new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
};
interface DynamicsCompressorNode extends AudioNode {
@@ -8248,6 +8248,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
readonly serviceWorker: ServiceWorkerContainer;
readonly webdriver: boolean;
readonly hardwareConcurrency: number;
readonly languages: string[];
getGamepads(): Gamepad[];
javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
+362 -263
View File
File diff suppressed because it is too large Load Diff
+521 -417
View File
File diff suppressed because it is too large Load Diff
+51 -47
View File
@@ -54,7 +54,7 @@ declare namespace ts {
pos: number;
end: number;
}
const enum SyntaxKind {
enum SyntaxKind {
Unknown = 0,
EndOfFileToken = 1,
SingleLineCommentTrivia = 2,
@@ -387,7 +387,7 @@ declare namespace ts {
FirstJSDocTagNode = 284,
LastJSDocTagNode = 294,
}
const enum NodeFlags {
enum NodeFlags {
None = 0,
Let = 1,
Const = 2,
@@ -414,7 +414,7 @@ declare namespace ts {
ContextFlags = 96256,
TypeExcludesFlags = 20480,
}
const enum ModifierFlags {
enum ModifierFlags {
None = 0,
Export = 1,
Ambient = 2,
@@ -434,7 +434,7 @@ declare namespace ts {
TypeScriptModifier = 2270,
ExportDefault = 513,
}
const enum JsxFlags {
enum JsxFlags {
None = 0,
IntrinsicNamedElement = 1,
IntrinsicIndexedElement = 2,
@@ -1114,6 +1114,7 @@ declare namespace ts {
condition?: Expression;
incrementor?: Expression;
}
type ForInOrOfStatement = ForInStatement | ForOfStatement;
interface ForInStatement extends IterationStatement {
kind: SyntaxKind.ForInStatement;
initializer: ForInitializer;
@@ -1187,7 +1188,7 @@ declare namespace ts {
variableDeclaration: VariableDeclaration;
block: Block;
}
type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration;
type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag;
interface ClassLikeDeclaration extends NamedDeclaration {
name?: Identifier;
typeParameters?: NodeArray<TypeParameterDeclaration>;
@@ -1485,7 +1486,7 @@ declare namespace ts {
name: Identifier;
isBracketed: boolean;
}
const enum FlowFlags {
enum FlowFlags {
Unreachable = 1,
Start = 2,
BranchLabel = 4,
@@ -1732,7 +1733,7 @@ declare namespace ts {
reportInaccessibleThisError(): void;
reportPrivateInBaseOfClassExpression(propertyName: string): void;
}
const enum TypeFormatFlags {
enum TypeFormatFlags {
None = 0,
WriteArrayAsGenericType = 1,
UseTypeOfFunction = 4,
@@ -1749,12 +1750,12 @@ declare namespace ts {
AddUndefined = 8192,
WriteClassExpressionAsTypeLiteral = 16384,
}
const enum SymbolFormatFlags {
enum SymbolFormatFlags {
None = 0,
WriteTypeParametersOrArguments = 1,
UseOnlyExternalAliasing = 2,
}
const enum TypePredicateKind {
enum TypePredicateKind {
This = 0,
Identifier = 1,
}
@@ -1771,7 +1772,7 @@ declare namespace ts {
parameterIndex: number;
}
type TypePredicate = IdentifierTypePredicate | ThisTypePredicate;
const enum SymbolFlags {
enum SymbolFlags {
None = 0,
FunctionScopedVariable = 1,
BlockScopedVariable = 2,
@@ -1845,7 +1846,7 @@ declare namespace ts {
globalExports?: SymbolTable;
}
type SymbolTable = Map<Symbol>;
const enum TypeFlags {
enum TypeFlags {
Any = 1,
String = 2,
Number = 4,
@@ -1902,7 +1903,7 @@ declare namespace ts {
}
interface EnumType extends Type {
}
const enum ObjectFlags {
enum ObjectFlags {
Class = 1,
Interface = 2,
Reference = 4,
@@ -1964,7 +1965,7 @@ declare namespace ts {
interface IndexType extends Type {
type: TypeVariable | UnionOrIntersectionType;
}
const enum SignatureKind {
enum SignatureKind {
Call = 0,
Construct = 1,
}
@@ -1973,7 +1974,7 @@ declare namespace ts {
typeParameters?: TypeParameter[];
parameters: Symbol[];
}
const enum IndexKind {
enum IndexKind {
String = 0,
Number = 1,
}
@@ -1982,7 +1983,7 @@ declare namespace ts {
isReadonly: boolean;
declaration?: SignatureDeclaration;
}
const enum InferencePriority {
enum InferencePriority {
NakedTypeVariable = 1,
MappedType = 2,
ReturnType = 4,
@@ -1995,7 +1996,7 @@ declare namespace ts {
topLevel: boolean;
isFixed: boolean;
}
const enum InferenceFlags {
enum InferenceFlags {
InferUnionTypes = 1,
NoDefault = 2,
AnyDefault = 4,
@@ -2075,6 +2076,7 @@ declare namespace ts {
noImplicitAny?: boolean;
noImplicitReturns?: boolean;
noImplicitThis?: boolean;
noStrictGenericChecks?: boolean;
noUnusedLocals?: boolean;
noUnusedParameters?: boolean;
noImplicitUseStrict?: boolean;
@@ -2130,13 +2132,13 @@ declare namespace ts {
ES2015 = 5,
ESNext = 6,
}
const enum JsxEmit {
enum JsxEmit {
None = 0,
Preserve = 1,
React = 2,
ReactNative = 3,
}
const enum NewLineKind {
enum NewLineKind {
CarriageReturnLineFeed = 0,
LineFeed = 1,
}
@@ -2144,7 +2146,7 @@ declare namespace ts {
line: number;
character: number;
}
const enum ScriptKind {
enum ScriptKind {
Unknown = 0,
JS = 1,
JSX = 2,
@@ -2152,7 +2154,7 @@ declare namespace ts {
TSX = 4,
External = 5,
}
const enum ScriptTarget {
enum ScriptTarget {
ES3 = 0,
ES5 = 1,
ES2015 = 2,
@@ -2161,7 +2163,7 @@ declare namespace ts {
ESNext = 5,
Latest = 5,
}
const enum LanguageVariant {
enum LanguageVariant {
Standard = 0,
JSX = 1,
}
@@ -2174,7 +2176,7 @@ declare namespace ts {
wildcardDirectories?: MapLike<WatchDirectoryFlags>;
compileOnSave?: boolean;
}
const enum WatchDirectoryFlags {
enum WatchDirectoryFlags {
None = 0,
Recursive = 1,
}
@@ -2199,12 +2201,11 @@ declare namespace ts {
extension: Extension;
}
enum Extension {
Ts = 0,
Tsx = 1,
Dts = 2,
Js = 3,
Jsx = 4,
LastTypeScriptExtension = 2,
Ts = ".ts",
Tsx = ".tsx",
Dts = ".d.ts",
Js = ".js",
Jsx = ".jsx",
}
interface ResolvedModuleWithFailedLookupLocations {
resolvedModule: ResolvedModuleFull | undefined;
@@ -2241,7 +2242,7 @@ declare namespace ts {
text: string;
skipTrivia?: (pos: number) => number;
}
const enum EmitFlags {
enum EmitFlags {
SingleLine = 1,
AdviseOnEmitNode = 2,
NoSubstitution = 4,
@@ -2277,7 +2278,7 @@ declare namespace ts {
readonly text: string;
readonly priority?: number;
}
const enum EmitHint {
enum EmitHint {
SourceFile = 0,
Expression = 1,
IdentifierName = 2,
@@ -2338,7 +2339,7 @@ declare namespace ts {
}
}
declare namespace ts {
const version = "2.4.0";
const version = "2.4.1";
}
declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any;
declare function clearTimeout(handle: any): void;
@@ -2533,7 +2534,7 @@ declare namespace ts {
function isIdentifier(node: Node): node is Identifier;
function isQualifiedName(node: Node): node is QualifiedName;
function isComputedPropertyName(node: Node): node is ComputedPropertyName;
function isTypeParameter(node: Node): node is TypeParameterDeclaration;
function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration;
function isParameter(node: Node): node is ParameterDeclaration;
function isDecorator(node: Node): node is Decorator;
function isPropertySignature(node: Node): node is PropertySignature;
@@ -2706,6 +2707,7 @@ declare namespace ts {
function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement;
function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement;
function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause;
function isJSDocCommentContainingNode(node: Node): boolean;
}
declare namespace ts {
function createNodeArray<T extends Node>(elements?: T[], hasTrailingComma?: boolean): NodeArray<T>;
@@ -3291,7 +3293,7 @@ declare namespace ts {
fileName: string;
highlightSpans: HighlightSpan[];
}
const enum HighlightSpanKind {
enum HighlightSpanKind {
none = "none",
definition = "definition",
reference = "reference",
@@ -3486,7 +3488,7 @@ declare namespace ts {
outputFiles: OutputFile[];
emitSkipped: boolean;
}
const enum OutputFileType {
enum OutputFileType {
JavaScript = 0,
SourceMap = 1,
Declaration = 2,
@@ -3496,7 +3498,7 @@ declare namespace ts {
writeByteOrderMark: boolean;
text: string;
}
const enum EndOfLineState {
enum EndOfLineState {
None = 0,
InMultiLineCommentTrivia = 1,
InSingleQuoteStringLiteral = 2,
@@ -3528,7 +3530,7 @@ declare namespace ts {
getClassificationsForLine(text: string, lexState: EndOfLineState, syntacticClassifierAbsent: boolean): ClassificationResult;
getEncodedLexicalClassifications(text: string, endOfLineState: EndOfLineState, syntacticClassifierAbsent: boolean): Classifications;
}
const enum ScriptElementKind {
enum ScriptElementKind {
unknown = "",
warning = "warning",
keyword = "keyword",
@@ -3563,7 +3565,7 @@ declare namespace ts {
externalModuleName = "external module name",
jsxAttribute = "JSX attribute",
}
const enum ScriptElementKindModifier {
enum ScriptElementKindModifier {
none = "",
publicMemberModifier = "public",
privateMemberModifier = "private",
@@ -3573,7 +3575,7 @@ declare namespace ts {
staticModifier = "static",
abstractModifier = "abstract",
}
const enum ClassificationTypeNames {
enum ClassificationTypeNames {
comment = "comment",
identifier = "identifier",
keyword = "keyword",
@@ -3598,7 +3600,7 @@ declare namespace ts {
jsxText = "jsx text",
jsxAttributeStringLiteralValue = "jsx attribute string literal value",
}
const enum ClassificationType {
enum ClassificationType {
comment = 1,
identifier = 2,
keyword = 3,
@@ -3858,7 +3860,7 @@ declare namespace ts.server {
}
}
declare namespace ts.server.protocol {
const enum CommandTypes {
enum CommandTypes {
Brace = "brace",
BraceCompletion = "braceCompletion",
Change = "change",
@@ -4597,7 +4599,7 @@ declare namespace ts.server.protocol {
interface NavTreeResponse extends Response {
body?: NavigationTree;
}
const enum IndentStyle {
enum IndentStyle {
None = "None",
Block = "Block",
Smart = "Smart",
@@ -4694,13 +4696,13 @@ declare namespace ts.server.protocol {
typeRoots?: string[];
[option: string]: CompilerOptionsValue | undefined;
}
const enum JsxEmit {
enum JsxEmit {
None = "None",
Preserve = "Preserve",
ReactNative = "ReactNative",
React = "React",
}
const enum ModuleKind {
enum ModuleKind {
None = "None",
CommonJS = "CommonJS",
AMD = "AMD",
@@ -4709,15 +4711,15 @@ declare namespace ts.server.protocol {
ES6 = "ES6",
ES2015 = "ES2015",
}
const enum ModuleResolutionKind {
enum ModuleResolutionKind {
Classic = "Classic",
Node = "Node",
}
const enum NewLineKind {
enum NewLineKind {
Crlf = "Crlf",
Lf = "Lf",
}
const enum ScriptTarget {
enum ScriptTarget {
ES3 = "ES3",
ES5 = "ES5",
ES6 = "ES6",
@@ -4737,7 +4739,8 @@ declare namespace ts.server {
interface EventSender {
event<T>(payload: T, eventName: string): void;
}
export import CommandNames = protocol.CommandTypes;
type CommandNames = protocol.CommandTypes;
const CommandNames: any;
function formatMessage<T extends protocol.Message>(msg: T, logger: server.Logger, byteLength: (s: string, encoding: string) => number, newLine: string): string;
interface SessionOptions {
host: ServerHost;
@@ -5308,6 +5311,7 @@ declare namespace ts.server {
readonly data: ProjectInfoTelemetryEventData;
}
interface ProjectInfoTelemetryEventData {
readonly projectId: string;
readonly fileStats: FileStats;
readonly compilerOptions: ts.CompilerOptions;
readonly extends: boolean | undefined;
+518 -415
View File
File diff suppressed because it is too large Load Diff
+16 -9
View File
@@ -1147,6 +1147,7 @@ declare namespace ts {
condition?: Expression;
incrementor?: Expression;
}
type ForInOrOfStatement = ForInStatement | ForOfStatement;
interface ForInStatement extends IterationStatement {
kind: SyntaxKind.ForInStatement;
initializer: ForInitializer;
@@ -1220,7 +1221,7 @@ declare namespace ts {
variableDeclaration: VariableDeclaration;
block: Block;
}
type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration;
type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag;
interface ClassLikeDeclaration extends NamedDeclaration {
name?: Identifier;
typeParameters?: NodeArray<TypeParameterDeclaration>;
@@ -2183,6 +2184,7 @@ declare namespace ts {
noImplicitAny?: boolean;
noImplicitReturns?: boolean;
noImplicitThis?: boolean;
noStrictGenericChecks?: boolean;
noUnusedLocals?: boolean;
noUnusedParameters?: boolean;
noImplicitUseStrict?: boolean;
@@ -2331,12 +2333,11 @@ declare namespace ts {
extension: Extension;
}
enum Extension {
Ts = 0,
Tsx = 1,
Dts = 2,
Js = 3,
Jsx = 4,
LastTypeScriptExtension = 2,
Ts = ".ts",
Tsx = ".tsx",
Dts = ".d.ts",
Js = ".js",
Jsx = ".jsx",
}
interface ResolvedModuleWithFailedLookupLocations {
resolvedModule: ResolvedModuleFull | undefined;
@@ -2592,7 +2593,7 @@ declare namespace ts {
}
declare namespace ts {
/** The version of the TypeScript compiler release */
const version = "2.4.0";
const version = "2.4.1";
}
declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any;
declare function clearTimeout(handle: any): void;
@@ -2627,6 +2628,10 @@ declare namespace ts {
getDirectories(path: string): string[];
readDirectory(path: string, extensions?: string[], exclude?: string[], include?: string[]): string[];
getModifiedTime?(path: string): Date;
/**
* This should be cryptographically secure.
* A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm)
*/
createHash?(data: string): string;
getMemoryUsage?(): number;
exit(exitCode?: number): void;
@@ -2785,7 +2790,7 @@ declare namespace ts {
function isIdentifier(node: Node): node is Identifier;
function isQualifiedName(node: Node): node is QualifiedName;
function isComputedPropertyName(node: Node): node is ComputedPropertyName;
function isTypeParameter(node: Node): node is TypeParameterDeclaration;
function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration;
function isParameter(node: Node): node is ParameterDeclaration;
function isDecorator(node: Node): node is Decorator;
function isPropertySignature(node: Node): node is PropertySignature;
@@ -2967,6 +2972,8 @@ declare namespace ts {
function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement;
function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement;
function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause;
/** True if node is of a kind that may contain comment text. */
function isJSDocCommentContainingNode(node: Node): boolean;
}
declare namespace ts {
/**
+527 -427
View File
File diff suppressed because it is too large Load Diff
+16 -9
View File
@@ -1147,6 +1147,7 @@ declare namespace ts {
condition?: Expression;
incrementor?: Expression;
}
type ForInOrOfStatement = ForInStatement | ForOfStatement;
interface ForInStatement extends IterationStatement {
kind: SyntaxKind.ForInStatement;
initializer: ForInitializer;
@@ -1220,7 +1221,7 @@ declare namespace ts {
variableDeclaration: VariableDeclaration;
block: Block;
}
type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration;
type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag;
interface ClassLikeDeclaration extends NamedDeclaration {
name?: Identifier;
typeParameters?: NodeArray<TypeParameterDeclaration>;
@@ -2183,6 +2184,7 @@ declare namespace ts {
noImplicitAny?: boolean;
noImplicitReturns?: boolean;
noImplicitThis?: boolean;
noStrictGenericChecks?: boolean;
noUnusedLocals?: boolean;
noUnusedParameters?: boolean;
noImplicitUseStrict?: boolean;
@@ -2331,12 +2333,11 @@ declare namespace ts {
extension: Extension;
}
enum Extension {
Ts = 0,
Tsx = 1,
Dts = 2,
Js = 3,
Jsx = 4,
LastTypeScriptExtension = 2,
Ts = ".ts",
Tsx = ".tsx",
Dts = ".d.ts",
Js = ".js",
Jsx = ".jsx",
}
interface ResolvedModuleWithFailedLookupLocations {
resolvedModule: ResolvedModuleFull | undefined;
@@ -2592,7 +2593,7 @@ declare namespace ts {
}
declare namespace ts {
/** The version of the TypeScript compiler release */
const version = "2.4.0";
const version = "2.4.1";
}
declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any;
declare function clearTimeout(handle: any): void;
@@ -2627,6 +2628,10 @@ declare namespace ts {
getDirectories(path: string): string[];
readDirectory(path: string, extensions?: string[], exclude?: string[], include?: string[]): string[];
getModifiedTime?(path: string): Date;
/**
* This should be cryptographically secure.
* A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm)
*/
createHash?(data: string): string;
getMemoryUsage?(): number;
exit(exitCode?: number): void;
@@ -2785,7 +2790,7 @@ declare namespace ts {
function isIdentifier(node: Node): node is Identifier;
function isQualifiedName(node: Node): node is QualifiedName;
function isComputedPropertyName(node: Node): node is ComputedPropertyName;
function isTypeParameter(node: Node): node is TypeParameterDeclaration;
function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration;
function isParameter(node: Node): node is ParameterDeclaration;
function isDecorator(node: Node): node is Decorator;
function isPropertySignature(node: Node): node is PropertySignature;
@@ -2967,6 +2972,8 @@ declare namespace ts {
function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement;
function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement;
function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause;
/** True if node is of a kind that may contain comment text. */
function isJSDocCommentContainingNode(node: Node): boolean;
}
declare namespace ts {
/**
+527 -427
View File
File diff suppressed because it is too large Load Diff
+18 -34
View File
@@ -90,15 +90,6 @@ var ts;
ModuleKind[ModuleKind["ES2015"] = 5] = "ES2015";
ModuleKind[ModuleKind["ESNext"] = 6] = "ESNext";
})(ModuleKind = ts.ModuleKind || (ts.ModuleKind = {}));
var Extension;
(function (Extension) {
Extension[Extension["Ts"] = 0] = "Ts";
Extension[Extension["Tsx"] = 1] = "Tsx";
Extension[Extension["Dts"] = 2] = "Dts";
Extension[Extension["Js"] = 3] = "Js";
Extension[Extension["Jsx"] = 4] = "Jsx";
Extension[Extension["LastTypeScriptExtension"] = 2] = "LastTypeScriptExtension";
})(Extension = ts.Extension || (ts.Extension = {}));
})(ts || (ts = {}));
var ts;
(function (ts) {
@@ -161,7 +152,7 @@ var ts;
})(ts || (ts = {}));
var ts;
(function (ts) {
ts.version = "2.4.0";
ts.version = "2.4.1";
})(ts || (ts = {}));
(function (ts) {
ts.collator = typeof Intl === "object" && typeof Intl.Collator === "function" ? new Intl.Collator(undefined, { usage: "sort", sensitivity: "accent" }) : undefined;
@@ -2142,7 +2133,7 @@ var ts;
}
ts.positionIsSynthesized = positionIsSynthesized;
function extensionIsTypeScript(ext) {
return ext <= ts.Extension.LastTypeScriptExtension;
return ext === ".ts" || ext === ".tsx" || ext === ".d.ts";
}
ts.extensionIsTypeScript = extensionIsTypeScript;
function extensionFromPath(path) {
@@ -2154,21 +2145,7 @@ var ts;
}
ts.extensionFromPath = extensionFromPath;
function tryGetExtensionFromPath(path) {
if (fileExtensionIs(path, ".d.ts")) {
return ts.Extension.Dts;
}
if (fileExtensionIs(path, ".ts")) {
return ts.Extension.Ts;
}
if (fileExtensionIs(path, ".tsx")) {
return ts.Extension.Tsx;
}
if (fileExtensionIs(path, ".js")) {
return ts.Extension.Js;
}
if (fileExtensionIs(path, ".jsx")) {
return ts.Extension.Jsx;
}
return find(ts.supportedTypescriptExtensionsForExtractExtension, function (e) { return fileExtensionIs(path, e); }) || find(ts.supportedJavascriptExtensions, function (e) { return fileExtensionIs(path, e); });
}
ts.tryGetExtensionFromPath = tryGetExtensionFromPath;
function isCheckJsEnabledForFile(sourceFile, compilerOptions) {
@@ -3368,6 +3345,7 @@ var ts;
Scoped_package_detected_looking_in_0: { code: 6182, category: ts.DiagnosticCategory.Message, key: "Scoped_package_detected_looking_in_0_6182", message: "Scoped package detected, looking in '{0}'" },
Reusing_resolution_of_module_0_to_file_1_from_old_program: { code: 6183, category: ts.DiagnosticCategory.Message, key: "Reusing_resolution_of_module_0_to_file_1_from_old_program_6183", message: "Reusing resolution of module '{0}' to file '{1}' from old program." },
Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program: { code: 6184, category: ts.DiagnosticCategory.Message, key: "Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184", message: "Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program." },
Disable_strict_checking_of_generic_signatures_in_function_types: { code: 6185, category: ts.DiagnosticCategory.Message, key: "Disable_strict_checking_of_generic_signatures_in_function_types_6185", message: "Disable strict checking of generic signatures in function types." },
Variable_0_implicitly_has_an_1_type: { code: 7005, category: ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", message: "Variable '{0}' implicitly has an '{1}' type." },
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", message: "Parameter '{0}' implicitly has an '{1}' type." },
Member_0_implicitly_has_an_1_type: { code: 7008, category: ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", message: "Member '{0}' implicitly has an '{1}' type." },
@@ -5639,6 +5617,12 @@ var ts;
category: ts.Diagnostics.Advanced_Options,
description: ts.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files
},
{
name: "noStrictGenericChecks",
type: "boolean",
category: ts.Diagnostics.Advanced_Options,
description: ts.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,
},
{
name: "plugins",
type: "list",
@@ -7189,14 +7173,14 @@ var ts;
}
switch (extensions) {
case Extensions.DtsOnly:
return tryExtension(".d.ts", ts.Extension.Dts);
return tryExtension(".d.ts");
case Extensions.TypeScript:
return tryExtension(".ts", ts.Extension.Ts) || tryExtension(".tsx", ts.Extension.Tsx) || tryExtension(".d.ts", ts.Extension.Dts);
return tryExtension(".ts") || tryExtension(".tsx") || tryExtension(".d.ts");
case Extensions.JavaScript:
return tryExtension(".js", ts.Extension.Js) || tryExtension(".jsx", ts.Extension.Jsx);
return tryExtension(".js") || tryExtension(".jsx");
}
function tryExtension(ext, extension) {
var path = tryFile(candidate + ext, failedLookupLocations, onlyRecordFailures, state);
function tryExtension(extension) {
var path = tryFile(candidate + extension, failedLookupLocations, onlyRecordFailures, state);
return path && { path: path, extension: extension };
}
}
@@ -7266,11 +7250,11 @@ var ts;
function extensionIsOk(extensions, extension) {
switch (extensions) {
case Extensions.JavaScript:
return extension === ts.Extension.Js || extension === ts.Extension.Jsx;
return extension === ".js" || extension === ".jsx";
case Extensions.TypeScript:
return extension === ts.Extension.Ts || extension === ts.Extension.Tsx || extension === ts.Extension.Dts;
return extension === ".ts" || extension === ".tsx" || extension === ".d.ts";
case Extensions.DtsOnly:
return extension === ts.Extension.Dts;
return extension === ".d.ts";
}
}
function pathToPackageJson(directory) {