Unverified Commit a5103d2e authored by Preston Richey's avatar Preston Richey Committed by GitHub

Add support for catch-all route params in NextRequest page type declaration (#36137)



fixes https://github.com/vercel/next.js/issues/36136

## Bug

- [X] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
parent f74b59c4
......@@ -13,7 +13,7 @@ export class NextRequest extends Request {
cookieParser(): { [key: string]: string }
geo: RequestData['geo']
ip?: string
page?: { name?: string; params?: { [key: string]: string } }
page?: { name?: string; params?: { [key: string]: string | string[] } }
ua?: UserAgent | null
url: NextURL
}
......@@ -105,7 +105,7 @@ export interface RequestInit extends globalThis.RequestInit {
}
page?: {
name?: string
params?: { [key: string]: string }
params?: { [key: string]: string | string[] }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment