Type information
Kompendium can generate documentation about any custom Typescript types that you use in your components. You might have props or events that implement a custom interface and this should be documented as well so it is easy for the consumer of your components to use them.
Configuration
All types needs to be exported from a single file. The default name of this file is ./src/types.ts
, but this can be configured if needed.
stencil.config.ts
This file should also be exported from the index.ts
file so type hints will be available when consuming the components in a code editor.
Example
my-component.tsx
my-data.ts
interface.d.ts
Last updated