Generate a self-contained .d.ts from the manifest that augments HTMLElementTagNameMap so document.querySelector and document.createElement are typed for consumers.
| Argument | Description |
|---|---|
<files...> | Component source files to analyze. |
| Option | Description |
|---|---|
-o, --output <path> | Write the .d.ts to a file instead of stdout. |
--jsx | Also augment JSX.IntrinsicElements. |
$ banira types src/*.ts -o dist/elements.d.tsNo runtime import is required by consumers — shipping the .d.ts alongside your package is enough
to type my-el in querySelector/createElement. With --jsx,
JSX intrinsic elements are augmented too.