Warning, in beta. Subject to change.

Custom Element Types

Framework Type Generator for Web Components

Github API Docs

Getting Started

The Custom Element Types generator will use a custom-elements.json file to generate a specific type definition files or shims for a given framework enabling type checking in type aware templates such as TSX in React or Angular HTML templates.

Most Web Component libraries ship with a custom-elements.json. However if not provided, a manifest can be generated using the Custom Elements Manifest Generator.

npm install --save-dev custom-element-types

custom-element-types --write --type react --entrypoint @blueprintui/components

Add a types.d.ts file to your project (React example).