update component.d.ts

This commit is contained in:
Harvey Zack committed 2023-04-18 22:52:33 +08:00
1 parent cd28cc795f
commit 645e2e2ec3
5 files changed
+53 -41

No files matched your search

+11 -1
View File
@@ -41,12 +41,22 @@ export type Component = {
/**
* Toggle the component parent
*/
set toggle(state: boolean);
toggle(): void;
/**
* Dynamic add a component
*/
add(option: ComponentOption): HTMLElement;
/**
* Dynamic remove a component
*/
remove(): void;
/**
* Dynamic update a component
*/
update(option: ComponentOption): HTMLElement;
};
export type ComponentOption = {