Skip to content

Commit bdf98f5

Browse files
Remove unnecessary backwards compat check
1 parent b66fb03 commit bdf98f5

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/compiler/emitter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,10 +3689,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri
36893689
emitTokenWithComment(node.phaseModifier, node.pos, writeKeyword, node);
36903690
writeSpace();
36913691
}
3692-
else if (node.isTypeOnly) {
3693-
emitTokenWithComment(SyntaxKind.TypeKeyword, node.pos, writeKeyword, node);
3694-
writeSpace();
3695-
}
36963692
emit(node.name);
36973693
if (node.name && node.namedBindings) {
36983694
emitTokenWithComment(SyntaxKind.CommaToken, node.name.end, writePunctuation, node);

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3713,7 +3713,7 @@ export type NamedExportBindings =
37133713
export interface ImportClause extends NamedDeclaration {
37143714
readonly kind: SyntaxKind.ImportClause;
37153715
readonly parent: ImportDeclaration | JSDocImportTag;
3716-
/** @deprecated */ readonly isTypeOnly: boolean | "hello";
3716+
/** @deprecated */ readonly isTypeOnly: boolean;
37173717
readonly phaseModifier: undefined | ImportPhaseModifier;
37183718
readonly name?: Identifier; // Default binding
37193719
readonly namedBindings?: NamedImportBindings;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5516,7 +5516,7 @@ declare namespace ts {
55165516
interface ImportClause extends NamedDeclaration {
55175517
readonly kind: SyntaxKind.ImportClause;
55185518
readonly parent: ImportDeclaration | JSDocImportTag;
5519-
/** @deprecated */ readonly isTypeOnly: boolean | "hello";
5519+
/** @deprecated */ readonly isTypeOnly: boolean;
55205520
readonly phaseModifier: undefined | ImportPhaseModifier;
55215521
readonly name?: Identifier;
55225522
readonly namedBindings?: NamedImportBindings;

0 commit comments

Comments
 (0)