From f080b412eed0e2b846a3bdf12e1a623604fdeb4b Mon Sep 17 00:00:00 2001 From: Mathias Picker <48158184+MathiasWP@users.noreply.github.com> Date: Tue, 5 May 2026 17:29:33 +0200 Subject: [PATCH] Update packages/svelte/elements.d.ts Refactor StyleValue types Co-authored-by: 7nik --- packages/svelte/elements.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index f19f36eb1d..9d7386ed85 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -2077,6 +2077,5 @@ export interface SvelteHTMLElements { export type ClassValue = string | import('clsx').ClassArray | import('clsx').ClassDictionary; -export type StyleDictionary = Record; -export type StyleArray = Array; -export type StyleValue = string | number | StyleDictionary | StyleArray | false | null | undefined; +type StylePrimitive = string | number | false | null | undefined; +export type StyleValue = StylePrimitive | StyleValue[] | { [key: string]: StyleValue };