found icon indicating copy to clipboard operation
found copied to clipboard

Type of Params is incorrect

Open steinybot opened this issue 1 year ago • 1 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.

steinybot avatar Jan 31 '24 23:01 steinybot

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

eMerzh avatar Mar 10 '25 08:03 eMerzh