Skip to content

Commit d30e130

Browse files
committed
docs: cast type to circumvent build issue
1 parent 32470ca commit d30e130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/calldata/validate.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ const validateArray = (
262262
// fixedArray
263263
switch (true) {
264264
case Array.isArray(parameterArray):
265-
parameter = parameterArray;
265+
// the type cast is just for the documentation generation, TS narrowing works as expected
266+
parameter = parameterArray as any;
266267
break;
267268
case typeof parameterArray === 'object':
268269
parameter = Object.values(parameterArray);

0 commit comments

Comments
 (0)