Skip to content

Type of Params is incorrect #1057

Open
@steinybot

Description

@steinybot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions