Unverified Commit 491a21b5 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Fix build type error of page params (#42019)

This PR temporarily fixes #41884 by loosing the type check rules. I will
work on a follow up PR to type params better with tests.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a 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 a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
Co-authored-by: 's avatarJiachi Liu <inbox@huozhi.im>
parent 3618b901
...@@ -27,12 +27,12 @@ check<IEntry, TEntry>(entry) ...@@ -27,12 +27,12 @@ check<IEntry, TEntry>(entry)
type PageParams = Record<string, string> type PageParams = Record<string, string>
interface PageProps { interface PageProps {
params?: PageParams params: any
searchParams?: Record<string, string | string[]> searchParams?: any
} }
interface LayoutProps { interface LayoutProps {
children: React.ReactNode children: React.ReactNode
params?: PageParams params: any
} }
type PageComponent = (props: PageProps) => React.ReactNode | Promise<React.ReactNode> type PageComponent = (props: PageProps) => React.ReactNode | Promise<React.ReactNode>
......
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