Skip to content

Commit e845e75

Browse files
committed
fix StyleValue
1 parent b4480e1 commit e845e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/elements.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
15341534
method?: 'align' | 'stretch' | undefined | null;
15351535
min?: number | string | undefined | null;
15361536
name?: string | undefined | null;
1537-
style?: string | undefined | null;
1537+
style?: StyleValue | undefined | null;
15381538
target?: string | undefined | null;
15391539
type?: string | undefined | null;
15401540
width?: number | string | undefined | null;
@@ -2065,4 +2065,4 @@ export type ClassValue = string | import('clsx').ClassArray | import('clsx').Cla
20652065

20662066
type StyleDictionary = Record<string, any>;
20672067
type StyleArray = StyleValue[];
2068-
export type StyleValue = StyleArray | StyleDictionary | string | null | undefined;
2068+
export type StyleValue = StyleArray | StyleDictionary | string | number | null | undefined;

0 commit comments

Comments
 (0)