A generator to create type definitions and framework bindings for applications using Web Components (Custom Elements).
Install via NPM
npm install --save-dev custom-element-typesIf you have a published Web Component library you can try out the generator playground.
custom-element-types --write --type react --entrypoint @blueprintui/components| Args | Description |
|---|---|
| type | react, preact, angular, typescript, blazor |
| custom-elements | optional custom path to custom-elements.json file |
| write | write to file, optionally provide a output directory path |
| entrypoint | package name for base entrypoint import path, else defaults to relative path |