Gabriel Nordeborn
Gabriel Nordeborn
Currently occupied with other things, but maybe me and @mununki could pair on this and get an implementation going that we can test.
> Maybe we can get even further than just custom prop types in this RFC. > > There is `JSX.IntrinsicElements` type in the TypeScript. > > * https://www.typescriptlang.org/docs/handbook/jsx.html#intrinsic-elements > *...
@mununki I had a fairly thorough look at the existing JSX code and I think adding a generic one _looks_ pretty straight forward. But, we need to make some assumptions....
Started working on a generic transform here: https://github.com/rescript-lang/rescript-compiler/pull/6565 Please leave any feedback you might have.
> I have used this one. https://github.com/kitajs/html Cool! Perfect example of something that would be very easy to set up with the generic transform.
I guess we could take all those elements and ensure they don't overlap by treating them as we would treat regular constructors but with the polyvariant value as a pretend...
This has to do with the editor line ending settings. Try changing that.
Thanks for letting us know @anmonteiro ! Will have a look.
I can't seem to reproduce this, trying with both rc6 and current master.
That capability would indeed be great to have in the toolbox.