rsnext/packages
Shu Ding 8ded79728e
Support for named slots in type checking (#43906)
Follow up to #43903, this PR adds named slots to the generated typings,
and provides better error messages for `next build`.

For example, a layout can have `test` as a prop because it has `@test`
co-located. But `invalid` is not a possible prop here:

![CleanShot 2022-12-09 at 21 24
21@2x](https://user-images.githubusercontent.com/3676859/206790150-0e2d7905-fad8-4b26-86ee-d5e69a5ad0f9.png)

And here's the error when running `next build`:

<img width="651" alt="CleanShot 2022-12-09 at 21 21 11@2x"
src="https://user-images.githubusercontent.com/3676859/206789969-8bbd75bd-e7e3-4109-9e0d-d5f8f9a4bbb5.png">

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/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`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
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`](https://github.com/vercel/next.js/blob/canary/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)
2022-12-09 23:29:57 +01:00
..
create-next-app v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
eslint-config-next v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
eslint-plugin-next v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
font v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next Support for named slots in type checking (#43906) 2022-12-09 23:29:57 +01:00
next-bundle-analyzer v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-codemod v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-env v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-mdx v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-plugin-storybook v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-polyfill-module v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-polyfill-nomodule v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
next-swc v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
react-dev-overlay v13.0.7-canary.4 2022-12-09 09:04:30 -06:00
react-refresh-utils v13.0.7-canary.4 2022-12-09 09:04:30 -06:00