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;