Skip to content

Commit

Permalink
fix: deprecated ts method
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbansal committed Dec 8, 2020
1 parent 8e1dd48 commit 06ebf87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/transformer/astUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ export function createNestedTerinaryExpression(
)
: context.factory.createNull();

return ts.createConditional(condition.initializer.expression, whenTrue, whenFalse);
return context.factory.createConditionalExpression(
condition.initializer.expression,
undefined,
whenTrue,
undefined,
whenFalse
);
}

return context.factory.createNull();
Expand Down

0 comments on commit 06ebf87

Please # to comment.