4Catalyzer / found

Extensible route-based routing for React applications

Home Page:https://4catalyzer.github.io/found/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.