Skip to content

Commit 1dee649

Browse files
committed
fix: unhandled satisfied expression
#127
1 parent bf33237 commit 1dee649

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/checker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,11 @@ export function checkNode(node: ts.Node | undefined, context: FileContext): void
659659
checkNode(node.name, context)
660660
return
661661
}
662+
if (ts.isSatisfiesExpression(node)) {
663+
checkNode(node.expression, context)
664+
checkNode(node.type, context)
665+
return
666+
}
662667
const { line, character } = ts.getLineAndCharacterOfPosition(context.sourceFile, node.getStart(context.sourceFile))
663668
console.log(`warning: unhandled node kind: ${node.kind} in ${context.file}:${line + 1}:${character + 1}`)
664669
}

0 commit comments

Comments
 (0)