Skip to content

1.2.1: Improved type system in `van.d.ts`

Compare
Choose a tag to compare
@Tao-VanJS Tao-VanJS released this 18 Sep 07:06
· 577 commits to main since this release

A minor release with changes to van.d.ts to improve VanJS's type system:

  • The binding function for state-derived child nodes is now taking the type ((dom?: Node) => ValidChildDomValue) | ((dom?: Element) => Element).
  • Specialize the return types of tag functions for more known tag names. Specifically, 1.2.1 added specialized return types for tags of HTMLElement type.

See the release announcement: #120