Skip to content

Commit 6dd3e70

Browse files
authored
fix(svelte): add HTML table element types to build script (#264)
This fix addresses all Table-related components (Table, TableBody, TableHead, TableCell, TableRow) `Object literal may only specify known properties, and 'children' does not exist in type 'TableProps'.ts(2353)`
1 parent 8768f45 commit 6dd3e70

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/build-svelte-types.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ const componentNativeElementInheritance = {
5252
Stepper: 'HTMLDivElement',
5353
Tabbar: 'HTMLAnchorElement',
5454
TabbarLink: 'HTMLAnchorElement',
55+
Table: 'HTMLTableElement',
56+
TableBody: 'HTMLTableSectionElement',
57+
TableHead: 'HTMLTableSectionElement',
58+
TableCell: 'HTMLTableCellElement',
59+
TableRow: 'HTMLTableRowElement',
5560
Toast: 'HTMLDivElement',
5661
Toggle: 'HTMLLabelElement',
5762
Toolbar: 'HTMLDivElement',

0 commit comments

Comments
 (0)