found
found copied to clipboard
Type of Params is incorrect
Params is:
export type Params = Record<string, string>;
But if you get an optional param that is missing you get undefined.
Either the type of Params should be:
export type Params = Record<string, string>;
Or the key for optional parameters should not be present.
I have a similar issue with undefined param values, but if i'm correct we also have the ability to pass array values which isn't represented here either