Closed paul-uz closed 3 years ago
This package does not contain types, so you'd need to file this on DefinitelyTyped.
@ljharb erm OK.
Alternatively, how can I stop those errors appearing at all?
Stop using typescript?
I’m sure you could cast the return value to a different type and avoid the type error.
I'm not using typescript. But I still see the errors in VSCode.
Ah, I'm not sure how to turn them off entirely, there's probably a vscode setting for it.
Otherwise, the types would have to be fixed in DefinitelyTyped.
I am parsing an object of query params and when accessing the various values, I'm getting the following error
"Property 'size' does not exist on type 'string | ParsedQs | string[] | ParsedQs[]'. Property 'size' does not exist on type 'string'.ts(2339)"
Code
Oddly, the code works fine, just I get these error messages that are distracting me.