diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 56a758d367aa6..e8f7af31fc8b4 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3689,10 +3689,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri emitTokenWithComment(node.phaseModifier, node.pos, writeKeyword, node); writeSpace(); } - else if (node.isTypeOnly) { - emitTokenWithComment(SyntaxKind.TypeKeyword, node.pos, writeKeyword, node); - writeSpace(); - } emit(node.name); if (node.name && node.namedBindings) { emitTokenWithComment(SyntaxKind.CommaToken, node.name.end, writePunctuation, node); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 09cb11f5e1288..dce42356655b8 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3713,7 +3713,7 @@ export type NamedExportBindings = export interface ImportClause extends NamedDeclaration { readonly kind: SyntaxKind.ImportClause; readonly parent: ImportDeclaration | JSDocImportTag; - /** @deprecated */ readonly isTypeOnly: boolean | "hello"; + /** @deprecated */ readonly isTypeOnly: boolean; readonly phaseModifier: undefined | ImportPhaseModifier; readonly name?: Identifier; // Default binding readonly namedBindings?: NamedImportBindings; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 75c5013bd5027..d2e9755bc4b09 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -5516,7 +5516,7 @@ declare namespace ts { interface ImportClause extends NamedDeclaration { readonly kind: SyntaxKind.ImportClause; readonly parent: ImportDeclaration | JSDocImportTag; - /** @deprecated */ readonly isTypeOnly: boolean | "hello"; + /** @deprecated */ readonly isTypeOnly: boolean; readonly phaseModifier: undefined | ImportPhaseModifier; readonly name?: Identifier; readonly namedBindings?: NamedImportBindings;