From f750eb37942c0bacd7c3609088abc3207f8ab1ce Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 21 Nov 2023 11:50:15 -0800 Subject: [PATCH] Pick #56485 into release-5.3 (#56486) --- src/compiler/types.ts | 6 +++--- tests/baselines/reference/api/typescript.d.ts | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 927720e580da8..5e44aac6dd25f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -858,7 +858,7 @@ export const enum ModifierFlags { Protected = 1 << 2, // Property/Method Readonly = 1 << 3, // Property/Method Override = 1 << 4, // Override method. - + // Syntactic-only modifiers Export = 1 << 5, // Declarations Abstract = 1 << 6, // Class/Method/ConstructSignature @@ -3663,10 +3663,10 @@ export interface ImportClause extends NamedDeclaration { export type AssertionKey = ImportAttributeName; /** @deprecated */ -export type AssertEntry = ImportAttribute; +export interface AssertEntry extends ImportAttribute {} /** @deprecated */ -export type AssertClause = ImportAttributes; +export interface AssertClause extends ImportAttributes {} export type ImportAttributeName = Identifier | StringLiteral; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 5ee1d5258cb01..f9df3aaa3d430 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -6018,9 +6018,11 @@ declare namespace ts { /** @deprecated */ type AssertionKey = ImportAttributeName; /** @deprecated */ - type AssertEntry = ImportAttribute; + interface AssertEntry extends ImportAttribute { + } /** @deprecated */ - type AssertClause = ImportAttributes; + interface AssertClause extends ImportAttributes { + } type ImportAttributeName = Identifier | StringLiteral; interface ImportAttribute extends Node { readonly kind: SyntaxKind.ImportAttribute;