Update component.d.ts

This commit is contained in:
Harvey Zack committed 2023-04-18 23:06:43 +08:00
1 parent 70f551b878
commit e23e828b3d
1 file changed
+2 -2
+2 -2
View File
@@ -49,9 +49,9 @@ export type Component = {
add(option: ComponentOption): HTMLElement;
/**
* Dynamic remove a component
* Dynamic remove a component by name
*/
remove(): void;
remove(name: string): void;
/**
* Dynamic update a component