Skip to content

Commit 7a0d6b8

Browse files
crisbetomattrbeck
authored andcommitted
fix(compiler-cli): transform dropping exclamationToken from properties
Fixes that the Ivy transform was dropping the `exclamationToken` from properties.
1 parent d99ab0e commit 7a0d6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-cli/src/ngtsc/transform/src/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class IvyTransformationVisitor extends Visitor {
349349
node,
350350
combinedModifiers,
351351
node.name,
352-
node.questionToken,
352+
node.questionToken || node.exclamationToken,
353353
node.type,
354354
node.initializer,
355355
) as T & ts.PropertyDeclaration;

0 commit comments

Comments
 (0)