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
[tsserver 2322] [E] Type 'ParsedQuery<string>' is not assignable to type 'Record<string, string | null | undefined>'.
Index signatures are incompatible.
Type 'string | string[] | null' is not assignable to type 'string | null | undefined'.
Type 'string[]' is not assignable to type 'string'.
exportinterfaceUrlObject{readonlyurl: string;/** Qverrides queries in the `url` property. */readonlyquery: Record<string,string|undefined|null>;/** Overrides the fragment identifier in the `url` property. */readonlyfragmentIdentifier?: string;}
Note
Additionally it should support number and boolean since these are also stringifiable.
The type of object argument in stringify should also match the type of query in stringifyUrl as they both stringify a record.
Proposed Fix
exporttypeStringifiable=string|boolean|number;exporttypeStringifiableRecord=Record<string,Stringifiable|Stringifiable[]|null|undefined>;exportinterfaceUrlObject{readonlyurl: string;/** Qverrides queries in the `url` property. */readonlyquery: StringifiableRecord;/** Overrides the fragment identifier in the `url` property. */readonlyfragmentIdentifier?: string;}exportfunctionstringify(object: StringifiableRecord,options?: StringifyOptions): string;
The text was updated successfully, but these errors were encountered:
Example
Error
This is a regression introduced by b15f945
ParsedQuery type has array
UrlObject type does not support an array
Note
Additionally it should support
number
andboolean
since these are also stringifiable.The type of
object
argument instringify
should also match the type ofquery
instringifyUrl
as they both stringify a record.Proposed Fix
The text was updated successfully, but these errors were encountered: