Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageProps componentMapping property is required in type, however it is treated as optional inside the component #225

Open
RomanKontsevoi opened this issue Dec 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@RomanKontsevoi
Copy link

Describe the bug
PageProps componentMapping property is required in type, however it is treated as optional inside the component. It causes TS errors working with the Page component (error TS2741: Property 'componentMapping' is missing in type)

Package version
"2.1.1"

To Reproduce
Steps to reproduce the behavior:

  1. Try to use Page component without componentMapping property and
  2. check it with tsc, for example
  3. See error: Property 'componentMapping' is missing in type

Expected behavior
No error

Screenshots
image

Additional context
Components are mapped with MapTo function, that's why componentMapping property is not used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant