Angius
Explore posts from serversTyping `parseArgs` from `@std/cli` properly
I'm having trouble figuring out how would I type the result of
parseArgs
with collect
setting.
the error is caused by the function taking a { [key: string] string }
as the second parameter, while args[path]
is typed as unknown[]
.
The code works, just so we're clear, it's just the types that error out.2 replies