File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
43
43
44
44
type RestProps = SvelteHTMLElements [" button" ];
45
45
46
- export interface ButtonProps extends RestProps {
46
+ type $Props = {
47
47
/**
48
48
* @default " button"
49
49
*/
@@ -53,7 +53,11 @@ export interface ButtonProps extends RestProps {
53
53
* @default false
54
54
*/
55
55
primary? : boolean ;
56
- }
56
+
57
+ [key : ` data-${string } ` ]: any ;
58
+ };
59
+
60
+ export type ButtonProps = Omit <RestProps , keyof $Props > & $Props ;
57
61
58
62
export default class Button extends SvelteComponentTyped <
59
63
ButtonProps ,
@@ -83,7 +87,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
83
87
84
88
type RestProps = SvelteHTMLElements [" button" ];
85
89
86
- export interface ButtonProps extends RestProps {
90
+ type $Props = {
87
91
/**
88
92
* @default " button"
89
93
*/
@@ -94,7 +98,9 @@ export interface ButtonProps extends RestProps {
94
98
* @default false
95
99
*/
96
100
primary? : boolean ;
97
- }
101
+ };
102
+
103
+ export type ButtonProps = Omit <RestProps , keyof $Props > & $Props ;
98
104
99
105
export default class Button extends SvelteComponentTyped <
100
106
ButtonProps ,
You can’t perform that action at this time.
0 commit comments