4Catalyzer / found

Extensible route-based routing for React applications
https://4catalyzer.github.io/found/
MIT License
794 stars 55 forks source link

Type of Params is incorrect #1057

Open steinybot opened 7 months ago

steinybot commented 7 months ago

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.