fix: PageProps.params never contains arrays, only strings (#91)

This commit is contained in:
Leo Kettmeir
2022-02-15 13:24:18 +01:00
committed by GitHub
parent 15f73e3274
commit 2ec980ca45
4 changed files with 40 additions and 15 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ export interface PageProps<
* For the `/foo/:bar` route with url `/foo/123`, `params` would be
* `{ bar: '123' }`. For a route with no matchers, `params` would be `{}`. For
* a wildcard route, like `/foo/:path*` with url `/foo/bar/baz`, `params` would
* be `{ path: [ 'bar', 'baz' ] }`.
* be `{ path: 'bar/baz' }`.
*/
params: Record<string, string | string[]>;
params: Record<string, string>;
/**
* Additional data passed into `HandlerContext.render`. Not present by