choojs / hyperx

🏷 - tagged template string virtual dom builder
BSD 2-Clause "Simplified" License
1.01k stars 48 forks source link

TypeScript support #45

Open styfle opened 7 years ago

styfle commented 7 years ago

This might not be possible but I'm wondering if anyone had success with type checking the ES6 tagged template string. Before hyperx, I wrote something similar called typed-tmpl which type checks the variables but check the html such as a missing an angle bracket like the TSX syntax does.

Has any had success with validating the HTML in the string?

jorgebucaran commented 7 years ago

@styfle Nope, but I'd like to know if you are planning to create a Typex or similar generic module like Hyperx that could be plugged into frameworks, etc.

styfle commented 7 years ago

@jbucaran I have not planned anything but I have been thinking about this problem (type checking templates) for several years and I just heard about hyperx today.