-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update TypeScript to 5.3-rc (#7923)
* feat: update TypeScript to 5.3-rc * Add 5.3.0-beta || * yarn.lock too * Revert "Went back to 5.3.0-beta" This reverts commit a2bef1d. * Use 5.4.0-dev.20231117 * Revert warnAboutTSVersion range * Aha, checksum now updates
- Loading branch information
1 parent
5dbf622
commit 9034d17
Showing
6 changed files
with
106 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
.yarn/patches/typescript-npm-5.4.0-dev.20231117-78a04a34c5.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
diff --git a/lib/typescript.d.ts b/lib/typescript.d.ts | ||
index 7135bb786332478763097e4fa2274ac0222ecbb2..446baab7b0d29f1e88842f97f58d343b816c8df0 100644 | ||
--- a/lib/typescript.d.ts | ||
+++ b/lib/typescript.d.ts | ||
@@ -4493,8 +4493,8 @@ declare namespace ts { | ||
JSDocFunctionType = 324, | ||
JSDocVariadicType = 325, | ||
JSDocNamepathType = 326, | ||
+ /** @deprecated This was only added in 4.7 */ | ||
JSDoc = 327, | ||
- /** @deprecated Use SyntaxKind.JSDoc */ | ||
JSDocComment = 327, | ||
JSDocText = 328, | ||
JSDocTypeLiteral = 329, | ||
@@ -5068,6 +5068,8 @@ declare namespace ts { | ||
readonly name: PropertyName; | ||
readonly questionToken?: QuestionToken; | ||
readonly type?: TypeNode; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly initializer?: Expression | undefined; | ||
} | ||
interface PropertyDeclaration extends ClassElement, JSDocContainer { | ||
readonly kind: SyntaxKind.PropertyDeclaration; | ||
@@ -5093,6 +5095,10 @@ declare namespace ts { | ||
readonly parent: ObjectLiteralExpression; | ||
readonly name: PropertyName; | ||
readonly initializer: Expression; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly questionToken?: QuestionToken | undefined; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly exclamationToken?: ExclamationToken | undefined; | ||
} | ||
interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { | ||
readonly kind: SyntaxKind.ShorthandPropertyAssignment; | ||
@@ -5100,6 +5106,12 @@ declare namespace ts { | ||
readonly name: Identifier; | ||
readonly equalsToken?: EqualsToken; | ||
readonly objectAssignmentInitializer?: Expression; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly modifiers?: NodeArray<Modifier> | undefined; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly questionToken?: QuestionToken | undefined; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly exclamationToken?: ExclamationToken | undefined; | ||
} | ||
interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { | ||
readonly kind: SyntaxKind.SpreadAssignment; | ||
@@ -5224,6 +5236,8 @@ declare namespace ts { | ||
} | ||
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { | ||
readonly kind: SyntaxKind.FunctionType; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly modifiers?: NodeArray<Modifier> | undefined; | ||
} | ||
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { | ||
readonly kind: SyntaxKind.ConstructorType; | ||
@@ -8995,7 +9009,13 @@ declare namespace ts { | ||
function symbolName(symbol: Symbol): string; | ||
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined; | ||
function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function getDecorators(node: HasDecorators): readonly Decorator[] | undefined; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function getModifiers(node: HasModifiers): readonly Modifier[] | undefined; | ||
/** | ||
* Gets the JSDoc parameter tags for the node if present. | ||
@@ -9525,7 +9545,13 @@ declare namespace ts { | ||
function isModuleName(node: Node): node is ModuleName; | ||
function isBinaryOperatorToken(node: Node): node is BinaryOperatorToken; | ||
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function canHaveModifiers(node: Node): node is HasModifiers; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function canHaveDecorators(node: Node): node is HasDecorators; | ||
/** | ||
* Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters