Type of Params is incorrect
steinybot opened this issue · comments
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.