From ea0ae050c97b16d50acb9b2f61742ace084795cc Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Mon, 3 Oct 2022 02:02:50 +0900 Subject: [PATCH] chore: update patch for typescript --- patches/typescript+4.9.1-beta.patch | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/patches/typescript+4.9.1-beta.patch b/patches/typescript+4.9.1-beta.patch index 574addc105f3..5e742894909b 100644 --- a/patches/typescript+4.9.1-beta.patch +++ b/patches/typescript+4.9.1-beta.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/typescript/lib/typescript.d.ts b/node_modules/typescript/lib/typescript.d.ts -index 0e6b255..92d7cf6 100644 +index 0e6b255..f0a588c 100644 --- a/node_modules/typescript/lib/typescript.d.ts +++ b/node_modules/typescript/lib/typescript.d.ts @@ -428,8 +428,8 @@ declare namespace ts { @@ -12,7 +12,21 @@ index 0e6b255..92d7cf6 100644 JSDocComment = 323, JSDocText = 324, JSDocTypeLiteral = 325, -@@ -4857,7 +4857,13 @@ declare namespace ts { +@@ -4395,7 +4395,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 getModifiers 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 getDecorators from `@typescript-eslint/type-utils`. ++ */ + function getModifiers(node: HasModifiers): readonly Modifier[] | undefined; + /** + * Gets the JSDoc parameter tags for the node if present. +@@ -4857,7 +4863,13 @@ declare namespace ts { } declare namespace ts { function setTextRange(range: T, location: TextRange | undefined): T; @@ -26,7 +40,7 @@ index 0e6b255..92d7cf6 100644 function canHaveDecorators(node: Node): node is HasDecorators; } declare namespace ts { -@@ -7951,7 +7957,7 @@ declare namespace ts { +@@ -7951,7 +7963,7 @@ declare namespace ts { * const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined; * ``` */