Skip to content

Commit

Permalink
🚐
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jun 21, 2023
1 parent 0f2e907 commit 95209bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/eslint-plugin-qwik/src/validLexicalScope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,11 @@ function _isTypeCapturable(
const canBeCalled = type.getCallSignatures().length > 0;
if (canBeCalled) {
const symbolName = type.symbol.name;
if (symbolName === 'PropFnInterface' || symbolName === 'RefFnInterface' || symbolName === 'bivarianceHack') {
if (
symbolName === 'PropFnInterface' ||
symbolName === 'RefFnInterface' ||
symbolName === 'bivarianceHack'
) {
return;
}
let reason = 'is a function, which is not serializable';
Expand Down

0 comments on commit 95209bb

Please sign in to comment.