Skip to content

Commit 87a797a

Browse files
committed
fix(svelte): add missing component element types to build script
Add Glass, Message, Messagebar, Messages, MessagesTitle, Notification, and Searchbar to componentNativeElementInheritance map to fix 'children' does not exist type errors in Svelte components.
1 parent 6dd3e70 commit 87a797a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/build-svelte-types.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ const componentNativeElementInheritance = {
6363
ToolbarPane: 'HTMLDivElement',
6464
Dialog: 'HTMLDivElement',
6565
DialogButton: 'HTMLButtonElement',
66+
Glass: 'HTMLDivElement',
67+
Message: 'HTMLDivElement',
68+
Messagebar: 'HTMLDivElement',
69+
Messages: 'HTMLDivElement',
70+
MessagesTitle: 'HTMLDivElement',
71+
Notification: 'HTMLDivElement',
72+
Searchbar: 'HTMLDivElement',
6673
};
6774

6875
const addOnClick = [

0 commit comments

Comments
 (0)