van-type-delegate
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

van-type-delegate

Typescript types to support isomorphic web development using vanjs-core, mini-van, van-plate. Uses utility types to infer the type in the correct van library.

Under Development

It is currently a git submodule in the vendor directory in the btakita/briantakita.me-dev monorepo.

When I am satisfied with it's usage, I will release this as an npm package.

Usage

VanShape

VanShape is simply a union of the Van types in the VanJS ecosystem. The <V extends VanShape> generic is used to infer what where the Van type originate from; either the vanjs-core, mini-van, or van-plate library. Since the source of the Van type is inferred, additional types in one of the van libraries can be inferred.

Package Sidebar

Install

npm i van-type-delegate

Weekly Downloads

11

Version

1.3.5

License

Apache-2.0

Unpacked Size

16.6 kB

Total Files

7

Last publish

Collaborators

  • btakita