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 e2444d4 commit 4e262efCopy full SHA for 4e262ef
src/visitors/functionTypes/visit.ts
@@ -47,6 +47,12 @@ export function newVisit(
47
return false;
48
}
49
const firstParam = paramTypeNode.parameters[0];
50
+ if (firstParam === undefined) {
51
+ if (process.env.NODE_ENV === 'test') {
52
+ console.log('firstParam is undefined');
53
+ }
54
+ return false;
55
56
const firstParamSymbol = checker.getSymbolAtLocation(firstParam.name);
57
if (firstParamSymbol === undefined) {
58
if (process.env.NODE_ENV === 'test') {
0 commit comments