Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 791a693

Browse files
committed
don't emit interfaces in untyped mode
Summary: When we're not using Closure types, we don't need to emit Closure interfaces. Avoids #146, unblocks the tsickle sync into Google. Reviewers: rkirov Reviewed By: rkirov Subscribers: typescript-eng Differential Revision: https://reviews.angular.io/D120
1 parent d31a08d commit 791a693

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tsickle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ class Annotator extends Rewriter {
442442
}
443443

444444
private emitInterface(iface: ts.InterfaceDeclaration) {
445+
if (this.options.untyped) return;
445446
this.emit(`\n/** @record */\n`);
446447
this.emit(`function ${iface.name.text}() {}\n`);
447448
if (iface.typeParameters) {

0 commit comments

Comments
 (0)