Skip to content

Commit 2f08b9a

Browse files
committed
fix(types): include skeleton props for Button/DataTableSkeleton
1 parent bde6594 commit 2f08b9a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

types/Button/Button.svelte.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@ type $Props = {
119119
[key: `data-${string}`]: any;
120120
};
121121

122-
export type ButtonProps = Omit<$RestProps, keyof $Props> & $Props;
122+
export type ButtonProps = Omit<
123+
$RestProps,
124+
keyof ($Props & ButtonSkeletonProps)
125+
> &
126+
$Props &
127+
ButtonSkeletonProps;
123128

124129
export default class Button extends SvelteComponentTyped<
125130
ButtonProps,

types/DataTable/DataTableSkeleton.svelte.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ type $Props = {
5353
[key: `data-${string}`]: any;
5454
};
5555

56-
export type DataTableSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
56+
export type DataTableSkeletonProps = Omit<
57+
$RestProps,
58+
keyof ($Props & DataTableHeader)
59+
> &
60+
$Props &
61+
DataTableHeader;
5762

5863
export default class DataTableSkeleton extends SvelteComponentTyped<
5964
DataTableSkeletonProps,

0 commit comments

Comments
 (0)