Skip to content

Commit d845ee2

Browse files
authored
Make AssertEntry and AssertClause interfaces (#56485)
1 parent 0aa2c48 commit d845ee2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/compiler/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ export const enum ModifierFlags {
858858
Protected = 1 << 2, // Property/Method
859859
Readonly = 1 << 3, // Property/Method
860860
Override = 1 << 4, // Override method.
861-
861+
862862
// Syntactic-only modifiers
863863
Export = 1 << 5, // Declarations
864864
Abstract = 1 << 6, // Class/Method/ConstructSignature
@@ -3663,10 +3663,10 @@ export interface ImportClause extends NamedDeclaration {
36633663
export type AssertionKey = ImportAttributeName;
36643664

36653665
/** @deprecated */
3666-
export type AssertEntry = ImportAttribute;
3666+
export interface AssertEntry extends ImportAttribute {}
36673667

36683668
/** @deprecated */
3669-
export type AssertClause = ImportAttributes;
3669+
export interface AssertClause extends ImportAttributes {}
36703670

36713671
export type ImportAttributeName = Identifier | StringLiteral;
36723672

tests/baselines/reference/api/typescript.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6020,9 +6020,11 @@ declare namespace ts {
60206020
/** @deprecated */
60216021
type AssertionKey = ImportAttributeName;
60226022
/** @deprecated */
6023-
type AssertEntry = ImportAttribute;
6023+
interface AssertEntry extends ImportAttribute {
6024+
}
60246025
/** @deprecated */
6025-
type AssertClause = ImportAttributes;
6026+
interface AssertClause extends ImportAttributes {
6027+
}
60266028
type ImportAttributeName = Identifier | StringLiteral;
60276029
interface ImportAttribute extends Node {
60286030
readonly kind: SyntaxKind.ImportAttribute;

0 commit comments

Comments
 (0)