We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a68ac75 commit 57fcf15Copy full SHA for 57fcf15
src/index.ts
@@ -102,6 +102,9 @@ function transformReactivityFunction(
102
for (const { ast, offset } of asts) {
103
walkAST<t.Node>(ast, {
104
enter(node, parent) {
105
+ if (node.type === 'TSNonNullExpression') {
106
+ node = node.expression
107
+ }
108
if (node.type !== 'CallExpression') return
109
110
if (
src/volar.ts
@@ -77,6 +77,9 @@ function transform({
77
node: import('typescript').Node,
78
parent: import('typescript').Node,
79
) {
80
+ if (ts.isNonNullExpression(node)) {
81
82
83
if (ts.isCallExpression(node)) {
84
85
ts.isVariableDeclaration(parent) &&
0 commit comments