This will properly silence the warning generated by recent shadow-cljs versions.
The warning is new since older versions only accounted for values tagged as any. But in cases like the with-let-values it is tagged as #{any array} due to the if branch having a hardcoded array return value. So, no externs inference was ever warned about.
In this case it is not a problem and technically no externs are needed. However in other projects under different circumstances the missing warnings could lead to build failures due to missing externs. So this change was added and uncovered a lot of previously missed cases, this being one of them.
This will properly silence the warning generated by recent shadow-cljs versions.
The warning is new since older versions only accounted for values tagged as
any
. But in cases like thewith-let-values
it is tagged as#{any array}
due to theif
branch having a hardcoded array return value. So, no externs inference was ever warned about.In this case it is not a problem and technically no externs are needed. However in other projects under different circumstances the missing warnings could lead to build failures due to missing externs. So this change was added and uncovered a lot of previously missed cases, this being one of them.