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 file: add support for JSX V4. #580

Merged
merged 2 commits into from
Sep 10, 2022
Merged

Conversation

cristianoc
Copy link
Collaborator

No description provided.

@cristianoc
Copy link
Collaborator Author

@mattdamon108 see how the editor support needs to stay in sync with JSX.
In particular, it needs to reverse-engineer it starting from the types obtained after the ppx run.
So in case of future changes, this should be taken into account.

&& optLbls |> List.mem "key" ->
(* PPX V4 component declaration:
type props = {..., key?: _}
let v = ...
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a heuristic.
Can't be super precise when working with the results of running a PPX.

@cristianoc
Copy link
Collaborator Author

This should be the last known item needed for rescript-lang/rescript-compiler#5406
Anything else, people will find out when testing more thoroughly.

@cristianoc cristianoc merged commit 8ee93d1 into master Sep 10, 2022
@cristianoc cristianoc deleted the create_intf_v4 branch September 10, 2022 06:10
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

Successfully merging this pull request may close these issues.

1 participant