Skip to content

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

Open
@RomanKontsevoi

Description

@RomanKontsevoi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions