diff --git a/src/detectors/typeChecker/FileLinter.ts b/src/detectors/typeChecker/FileLinter.ts index 1479b6977..ad812fc66 100644 --- a/src/detectors/typeChecker/FileLinter.ts +++ b/src/detectors/typeChecker/FileLinter.ts @@ -223,8 +223,8 @@ export default class FileLinter { analyzeLibInitCall(node: ts.CallExpression) { const nodeExp = ( ts.isIdentifier(node.expression) || // Assignment `const LibInit = Library.init` and destructuring - ts.isPropertyAccessExpression(node.expression) || - ts.isElementAccessExpression(node.expression)) && node.expression; + ts.isPropertyAccessExpression(node.expression) || /* Lib.init() */ + ts.isElementAccessExpression(node.expression) /* Lib["init"]() */) && node.expression; const nodeType = nodeExp && this.#checker.getTypeAtLocation(nodeExp); if (!nodeType || !nodeType.symbol || nodeType.symbol.getName() !== "init") { return;