You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import queryString, { ParsedQuery } from 'query-string';
import { ParsedQs } from 'qs';
TS2345: Argument of type 'ParsedQuery' is not assignable to parameter of type 'ParsedQs'.
Index signatures are incompatible.
Type 'string | string[] | null | undefined' is not assignable to type 'string | ParsedQs | string[] | ParsedQs[] | undefined'. Type 'null' is not assignable to type 'string | ParsedQs | string[] | ParsedQs[] | undefined'.
I understand that maybe we have causes for this, but I quess that fix is minor but very helpful.
Thank you, sorry for my English :)
The text was updated successfully, but these errors were encountered:
These are different packages with different ways of working. I'm not sure why you're expecting them to just be seamlessly convertible. It's up to you to resolve this type incompatibility.
Hello, everyone!
Next code is not works out of the box.
TS2345: Argument of type 'ParsedQuery' is not assignable to parameter of type 'ParsedQs'.
Index signatures are incompatible.
Type 'string | string[] | null | undefined' is not assignable to type 'string | ParsedQs | string[] | ParsedQs[] | undefined'. Type 'null' is not assignable to type 'string | ParsedQs | string[] | ParsedQs[] | undefined'.
I understand that maybe we have causes for this, but I quess that fix is minor but very helpful.
Thank you, sorry for my English :)
The text was updated successfully, but these errors were encountered: