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

Create interface command does not work on external React components #864

Open
fhammerschmidt opened this issue Dec 12, 2023 · 0 comments
Open

Comments

@fhammerschmidt
Copy link
Contributor

The following .res file:

type props = {children: React.element}

@module("@mui/material/styles")
external make: React.component<props> = "StyledEngineProvider"

yields me the following interface

@react.component
external make: (~children: React.element) => React.element =
  "StyledEngineProvider" "#rescript-external"

but it should be identical to the .res file, since it's only using external.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant