mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-13 09:12:52 -05:00
Update baselines
This commit is contained in:
90
tests/baselines/reference/api/typescript.d.ts
vendored
90
tests/baselines/reference/api/typescript.d.ts
vendored
@@ -4210,8 +4210,6 @@ declare namespace ts {
|
||||
readonly kind: SyntaxKind;
|
||||
readonly flags: NodeFlags;
|
||||
readonly parent: Node;
|
||||
}
|
||||
interface Node {
|
||||
getSourceFile(): SourceFile;
|
||||
getChildCount(sourceFile?: SourceFile): number;
|
||||
getChildAt(index: number, sourceFile?: SourceFile): Node;
|
||||
@@ -4374,8 +4372,6 @@ declare namespace ts {
|
||||
* Text of identifier, but if the identifier begins with two underscores, this will begin with three.
|
||||
*/
|
||||
readonly escapedText: __String;
|
||||
}
|
||||
interface Identifier {
|
||||
readonly text: string;
|
||||
}
|
||||
interface Identifier {
|
||||
@@ -4413,8 +4409,6 @@ declare namespace ts {
|
||||
interface PrivateIdentifier extends PrimaryExpression {
|
||||
readonly kind: SyntaxKind.PrivateIdentifier;
|
||||
readonly escapedText: __String;
|
||||
}
|
||||
interface PrivateIdentifier {
|
||||
readonly text: string;
|
||||
}
|
||||
interface Decorator extends Node {
|
||||
@@ -5807,8 +5801,6 @@ declare namespace ts {
|
||||
*/
|
||||
interface SourceFileLike {
|
||||
readonly text: string;
|
||||
}
|
||||
interface SourceFileLike {
|
||||
getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
|
||||
}
|
||||
type ResolutionMode = ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
|
||||
@@ -5853,8 +5845,6 @@ declare namespace ts {
|
||||
* CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
|
||||
*/
|
||||
impliedNodeFormat?: ResolutionMode;
|
||||
}
|
||||
interface SourceFile {
|
||||
getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
|
||||
getLineEndOfPosition(pos: number): number;
|
||||
getLineStarts(): readonly number[];
|
||||
@@ -5862,7 +5852,7 @@ declare namespace ts {
|
||||
update(newText: string, textChangeRange: TextChangeRange): SourceFile;
|
||||
}
|
||||
/**
|
||||
* Represents an immutable snapshot of a script at a specified time.Once acquired, the
|
||||
* Represents an immutable snapshot of a script at a specified time. Once acquired, the
|
||||
* snapshot is observably immutable. i.e. the same calls with the same parameters will return
|
||||
* the same values.
|
||||
*/
|
||||
@@ -6378,6 +6368,39 @@ declare namespace ts {
|
||||
PropertyOrAccessor = 98308,
|
||||
ClassMember = 106500,
|
||||
}
|
||||
interface SymbolDisplayPart {
|
||||
/**
|
||||
* Text of an item describing the symbol.
|
||||
*/
|
||||
text: string;
|
||||
/**
|
||||
* The symbol's kind (such as 'className' or 'parameterName' or plain 'text').
|
||||
*/
|
||||
kind: string;
|
||||
}
|
||||
interface DocumentSpan {
|
||||
textSpan: TextSpan;
|
||||
fileName: string;
|
||||
/**
|
||||
* If the span represents a location that was remapped (e.g. via a .d.ts.map file),
|
||||
* then the original filename and span will be specified here
|
||||
*/
|
||||
originalTextSpan?: TextSpan;
|
||||
originalFileName?: string;
|
||||
/**
|
||||
* If DocumentSpan.textSpan is the span for name of the declaration,
|
||||
* then this is the span for relevant declaration
|
||||
*/
|
||||
contextSpan?: TextSpan;
|
||||
originalContextSpan?: TextSpan;
|
||||
}
|
||||
interface JSDocLinkDisplayPart extends SymbolDisplayPart {
|
||||
target: DocumentSpan;
|
||||
}
|
||||
interface JSDocTagInfo {
|
||||
name: string;
|
||||
text?: SymbolDisplayPart[];
|
||||
}
|
||||
interface Symbol {
|
||||
flags: SymbolFlags;
|
||||
escapedName: __String;
|
||||
@@ -6386,8 +6409,6 @@ declare namespace ts {
|
||||
members?: SymbolTable;
|
||||
exports?: SymbolTable;
|
||||
globalExports?: SymbolTable;
|
||||
}
|
||||
interface Symbol {
|
||||
readonly name: string;
|
||||
getFlags(): SymbolFlags;
|
||||
getEscapedName(): __String;
|
||||
@@ -6497,8 +6518,6 @@ declare namespace ts {
|
||||
pattern?: DestructuringPattern;
|
||||
aliasSymbol?: Symbol;
|
||||
aliasTypeArguments?: readonly Type[];
|
||||
}
|
||||
interface Type {
|
||||
getFlags(): TypeFlags;
|
||||
getSymbol(): Symbol | undefined;
|
||||
getProperties(): Symbol[];
|
||||
@@ -6598,9 +6617,7 @@ declare namespace ts {
|
||||
interface TypeReference extends ObjectType {
|
||||
target: GenericType;
|
||||
node?: TypeReferenceNode | ArrayTypeNode | TupleTypeNode;
|
||||
}
|
||||
interface TypeReference {
|
||||
typeArguments?: readonly Type[];
|
||||
readonly typeArguments?: readonly Type[];
|
||||
}
|
||||
interface DeferredTypeReference extends TypeReference {
|
||||
}
|
||||
@@ -6698,8 +6715,6 @@ declare namespace ts {
|
||||
typeParameters?: readonly TypeParameter[];
|
||||
parameters: readonly Symbol[];
|
||||
thisParameter?: Symbol;
|
||||
}
|
||||
interface Signature {
|
||||
getDeclaration(): JSDocSignature | SignatureDeclaration;
|
||||
getTypeParameters(): readonly TypeParameter[] | undefined;
|
||||
getParameters(): readonly Symbol[];
|
||||
@@ -7212,8 +7227,6 @@ declare namespace ts {
|
||||
fileName: string;
|
||||
text: string;
|
||||
skipTrivia?: (pos: number) => number;
|
||||
}
|
||||
interface SourceMapSource {
|
||||
getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
|
||||
}
|
||||
enum EmitFlags {
|
||||
@@ -10342,22 +10355,6 @@ declare namespace ts {
|
||||
/** The position in newText the caret should point to after the insertion. */
|
||||
caretOffset: number;
|
||||
}
|
||||
interface DocumentSpan {
|
||||
textSpan: TextSpan;
|
||||
fileName: string;
|
||||
/**
|
||||
* If the span represents a location that was remapped (e.g. via a .d.ts.map file),
|
||||
* then the original filename and span will be specified here
|
||||
*/
|
||||
originalTextSpan?: TextSpan;
|
||||
originalFileName?: string;
|
||||
/**
|
||||
* If DocumentSpan.textSpan is the span for name of the declaration,
|
||||
* then this is the span for relevant declaration
|
||||
*/
|
||||
contextSpan?: TextSpan;
|
||||
originalContextSpan?: TextSpan;
|
||||
}
|
||||
interface RenameLocation extends DocumentSpan {
|
||||
readonly prefixText?: string;
|
||||
readonly suffixText?: string;
|
||||
@@ -10511,23 +10508,6 @@ declare namespace ts {
|
||||
linkName = 23,
|
||||
linkText = 24,
|
||||
}
|
||||
interface SymbolDisplayPart {
|
||||
/**
|
||||
* Text of an item describing the symbol.
|
||||
*/
|
||||
text: string;
|
||||
/**
|
||||
* The symbol's kind (such as 'className' or 'parameterName' or plain 'text').
|
||||
*/
|
||||
kind: string;
|
||||
}
|
||||
interface JSDocLinkDisplayPart extends SymbolDisplayPart {
|
||||
target: DocumentSpan;
|
||||
}
|
||||
interface JSDocTagInfo {
|
||||
name: string;
|
||||
text?: SymbolDisplayPart[];
|
||||
}
|
||||
interface QuickInfo {
|
||||
kind: ScriptElementKind;
|
||||
kindModifiers: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeErrors
|
||||
@@ -230,7 +230,7 @@
|
||||
@@ -229,7 +229,7 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeErrors
|
||||
@@ -8,9 +8,8 @@
|
||||
@@ -7,9 +7,8 @@
|
||||
"0": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 0,
|
||||
@@ -11,7 +11,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -39,42 +38,9 @@
|
||||
@@ -38,42 +37,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -55,7 +55,7 @@
|
||||
"1": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 46,
|
||||
@@ -230,6 +196,6 @@
|
||||
@@ -229,6 +195,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeInfo
|
||||
@@ -230,7 +230,7 @@
|
||||
@@ -229,7 +229,7 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeInfo
|
||||
@@ -8,9 +8,8 @@
|
||||
@@ -7,9 +7,8 @@
|
||||
"0": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 0,
|
||||
@@ -11,7 +11,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -39,42 +38,9 @@
|
||||
@@ -38,42 +37,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -55,7 +55,7 @@
|
||||
"1": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 46,
|
||||
@@ -106,9 +72,8 @@
|
||||
@@ -105,9 +71,8 @@
|
||||
"2": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 61,
|
||||
@@ -65,7 +65,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -137,43 +102,9 @@
|
||||
@@ -136,43 +101,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -110,7 +110,7 @@
|
||||
"3": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 135,
|
||||
@@ -230,6 +161,6 @@
|
||||
@@ -229,6 +160,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseNone
|
||||
@@ -8,9 +8,8 @@
|
||||
@@ -7,9 +7,8 @@
|
||||
"0": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 0,
|
||||
@@ -11,7 +11,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -39,42 +38,9 @@
|
||||
@@ -38,42 +37,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -55,7 +55,7 @@
|
||||
"1": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 46,
|
||||
@@ -106,9 +72,8 @@
|
||||
@@ -105,9 +71,8 @@
|
||||
"2": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 61,
|
||||
@@ -65,7 +65,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -137,43 +102,9 @@
|
||||
@@ -136,43 +101,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -110,7 +110,7 @@
|
||||
"3": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 135,
|
||||
@@ -230,7 +161,6 @@
|
||||
@@ -229,7 +160,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseNone
|
||||
@@ -8,9 +8,8 @@
|
||||
@@ -7,9 +7,8 @@
|
||||
"0": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 0,
|
||||
@@ -11,7 +11,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -39,42 +38,9 @@
|
||||
@@ -38,42 +37,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -55,7 +55,7 @@
|
||||
"1": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 46,
|
||||
@@ -106,9 +72,8 @@
|
||||
@@ -105,9 +71,8 @@
|
||||
"2": {
|
||||
"kind": "FunctionDeclaration",
|
||||
"pos": 61,
|
||||
@@ -65,7 +65,7 @@
|
||||
"modifierFlagsCache": 0,
|
||||
"name": {
|
||||
"kind": "Identifier",
|
||||
@@ -137,43 +102,9 @@
|
||||
@@ -136,43 +101,9 @@
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
},
|
||||
@@ -110,7 +110,7 @@
|
||||
"3": {
|
||||
"kind": "ExpressionStatement",
|
||||
"pos": 135,
|
||||
@@ -230,6 +161,6 @@
|
||||
@@ -229,6 +160,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeErrors
|
||||
@@ -214,7 +214,7 @@
|
||||
@@ -213,7 +213,7 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeErrors
|
||||
@@ -214,6 +214,6 @@
|
||||
@@ -213,6 +213,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeInfo
|
||||
@@ -214,7 +214,7 @@
|
||||
@@ -213,7 +213,7 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeInfo
|
||||
@@ -88,52 +88,9 @@
|
||||
@@ -87,52 +87,9 @@
|
||||
"pos": 69,
|
||||
"end": 69,
|
||||
"hasTrailingComma": false,
|
||||
@@ -55,7 +55,7 @@
|
||||
"length": 2,
|
||||
"pos": 0,
|
||||
"end": 70,
|
||||
@@ -214,6 +171,6 @@
|
||||
@@ -213,6 +170,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseNone
|
||||
@@ -88,52 +88,9 @@
|
||||
@@ -87,52 +87,9 @@
|
||||
"pos": 69,
|
||||
"end": 69,
|
||||
"hasTrailingComma": false,
|
||||
@@ -55,7 +55,7 @@
|
||||
"length": 2,
|
||||
"pos": 0,
|
||||
"end": 70,
|
||||
@@ -214,7 +171,6 @@
|
||||
@@ -213,7 +170,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseNone
|
||||
@@ -88,52 +88,9 @@
|
||||
@@ -87,52 +87,9 @@
|
||||
"pos": 69,
|
||||
"end": 69,
|
||||
"hasTrailingComma": false,
|
||||
@@ -55,7 +55,7 @@
|
||||
"length": 2,
|
||||
"pos": 0,
|
||||
"end": 70,
|
||||
@@ -214,6 +171,6 @@
|
||||
@@ -213,6 +170,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeErrors
|
||||
@@ -295,7 +295,7 @@
|
||||
@@ -294,7 +294,7 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeErrors
|
||||
@@ -295,6 +295,6 @@
|
||||
@@ -294,6 +294,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeInfo
|
||||
@@ -295,7 +295,7 @@
|
||||
@@ -294,7 +294,7 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseForTypeInfo
|
||||
@@ -38,235 +38,9 @@
|
||||
@@ -37,235 +37,9 @@
|
||||
"end": 108,
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
@@ -238,7 +238,7 @@
|
||||
"length": 1,
|
||||
"pos": 0,
|
||||
"end": 109,
|
||||
@@ -295,6 +69,6 @@
|
||||
@@ -294,6 +68,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseNone
|
||||
@@ -38,235 +38,9 @@
|
||||
@@ -37,235 +37,9 @@
|
||||
"end": 108,
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
@@ -238,7 +238,7 @@
|
||||
"length": 1,
|
||||
"pos": 0,
|
||||
"end": 109,
|
||||
@@ -295,7 +69,6 @@
|
||||
@@ -294,7 +68,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
===================================================================
|
||||
--- default
|
||||
+++ ParseNone
|
||||
@@ -38,235 +38,9 @@
|
||||
@@ -37,235 +37,9 @@
|
||||
"end": 108,
|
||||
"hasTrailingComma": false,
|
||||
"transformFlags": 0
|
||||
@@ -238,7 +238,7 @@
|
||||
"length": 1,
|
||||
"pos": 0,
|
||||
"end": 109,
|
||||
@@ -295,6 +69,6 @@
|
||||
@@ -294,6 +68,6 @@
|
||||
"typeReferenceDirectives": [],
|
||||
"libReferenceDirectives": [],
|
||||
"amdDependencies": [],
|
||||
|
||||
Reference in New Issue
Block a user