Skip to content

Commit f750eb3

Browse files
authored
Pick #56485 into release-5.3 (#56486)
1 parent 27047e3 commit f750eb3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: src/compiler/types.ts

+3-3
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

Diff for: tests/baselines/reference/api/typescript.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -6018,9 +6018,11 @@ declare namespace ts {
60186018
/** @deprecated */
60196019
type AssertionKey = ImportAttributeName;
60206020
/** @deprecated */
6021-
type AssertEntry = ImportAttribute;
6021+
interface AssertEntry extends ImportAttribute {
6022+
}
60226023
/** @deprecated */
6023-
type AssertClause = ImportAttributes;
6024+
interface AssertClause extends ImportAttributes {
6025+
}
60246026
type ImportAttributeName = Identifier | StringLiteral;
60256027
interface ImportAttribute extends Node {
60266028
readonly kind: SyntaxKind.ImportAttribute;

0 commit comments

Comments
 (0)