Update packages/svelte/elements.d.ts

Refactor StyleValue types

Co-authored-by: 7nik <kfiiranet@gmail.com>
pull/18176/head
Mathias Picker 4 months ago committed by GitHub
parent 88b1a2f4b4
commit f080b412ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2077,6 +2077,5 @@ export interface SvelteHTMLElements {
export type ClassValue = string | import('clsx').ClassArray | import('clsx').ClassDictionary; export type ClassValue = string | import('clsx').ClassArray | import('clsx').ClassDictionary;
export type StyleDictionary = Record<string, string | number | false | null | undefined>; type StylePrimitive = string | number | false | null | undefined;
export type StyleArray = Array<StyleValue>; export type StyleValue = StylePrimitive | StyleValue[] | { [key: string]: StyleValue };
export type StyleValue = string | number | StyleDictionary | StyleArray | false | null | undefined;

Loading…
Cancel
Save