Skip to content

Commit 2f6a9aa

Browse files
committed
[Fix] correction to #80
1 parent 2042d47 commit 2f6a9aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/values/expressions/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ export default function extract(value) {
7373
let { type } = expression;
7474

7575
while (type === 'TSNonNullExpression' || type === 'TSAsExpression') {
76-
({ expression, type } = expression);
76+
({ type } = expression);
77+
if (expression.expression) {
78+
({ expression } = expression);
79+
}
7780
}
7881

7982
if (TYPES[type] === undefined) {

0 commit comments

Comments
 (0)