Skip to content

Commit

Permalink
Keep ! when not transforming TS
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 7, 2020
1 parent 7cff730 commit 2a72af8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -47,7 +47,7 @@ export default declare((api, options) => {

// unwrap a TSNonNullExpression if need
if (optionalPath.isTSNonNullExpression()) {
optionalPath.replaceWith(optionalPath.node.expression);
optionalPath = optionalPath.get("expression");
}
}

Expand Down

0 comments on commit 2a72af8

Please sign in to comment.