Type information
Configuration
{
type: 'docs-custom',
strict: true,
generator: kompendium({
typeRoot: './src/interface.d.ts'
})
}Example
import { Component, h, Prop } from '@stencil/core';
import { MyData } from './my-data.ts';
/**
* This is a sample component
*
* Kompendium will parse the doc blocks and render it using Markdown
*/
@Component({
tag: 'my-component',
shadow: true,
})
export class MyComponent {
/**
* This is a sample property
*/
@Prop()
public data: MyData;
render() {
return <p>Hello, {this.data.name}!</p>;
}
}Last updated