Skip to content

Exported type definition is different from original #931

Description

@jeanverster

Hi there! I'm running into an issue where the exported type definition differs from the type definition of the actual component. For instance, if I hover over the Box component where it's being defined, I get the following type definition:

constBox: React.ForwardRefExoticComponent<Pick<BoxProps,keyofCommonProps|"translate"|StandardSystemKeys|"slot"|"title"|"children"|"component"|"sx"|"key"| ... 246more ... |"onTransitionEndCapture">&React.RefAttributes<...>>

But after I've run microbundle build the definition for Box is missing all the props:

declareconstBox: React.ForwardRefExoticComponent<Pick<any,string|number|symbol>&React.RefAttributes<unknown>>;

Any ideas why that might be?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions