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

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy