Skip to content

Commit ad51dfd

Browse files
committed
add Component class typedoc
1 parent 9fc2d10 commit ad51dfd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ type ElementToTagName<T extends HTMLElement> = {
2020
[K in keyof HTMLElementTagNameMap]: HTMLElementTagNameMap[K] extends T ? K : never
2121
}[keyof HTMLElementTagNameMap];
2222

23+
/**
24+
* An {@link !HTMLElement} component.
25+
*
26+
* To create your own component, it's recommended to extend this class.
27+
* @typeParam T Component element type
28+
*/
2329
export class Component<T extends HTMLElement = HTMLElement> extends ElementComponent<T> {
2430
/**
2531
* Create Component instance

0 commit comments

Comments
 (0)