cyclejs
cyclejs copied to clipboard
DOM element helpers typings
I want to open this PR (will contain multiple commits), for making better typings of DOM helpers based on @TylorS's https://github.com/TylorS/mostly-dom/blob/master/src/types/HtmlProperties.ts
This will also probably require move to TS 2.3.2
@staltz please review initial changes, and say if you ok with the proposal
maybe it would be better to implement in snabbdom?
Great initiative @whitecolor ! Keep on going with this please :)
Eventually it would be good to put this in snabbdom, but Cycle.js has a unique hyperscript helper, so it makes sense to do what you're doing now.
I'd also recommend writing some tests (they are in TypeScript nowadays) before implementing everything. It doesn't need to be full TDD, but just a few tests so we know what is the goal API that we want to get.