tailwind-to-style 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ // Type definitions for tailwind-to-style/tws
2
+ // Tree-shakeable import: import { tws } from 'tailwind-to-style/tws'
3
+
4
+ /**
5
+ * Converts Tailwind CSS classes to inline styles or JSON object
6
+ */
7
+ export function tws(classNames: string, convertToJson?: false): string;
8
+ export function tws(classNames: string, convertToJson: true): Record<string, string>;
9
+ export function tws(classNames: string, convertToJson?: boolean): string | Record<string, string>;
10
+
11
+ /**
12
+ * Debounced version of tws function (50ms delay)
13
+ */
14
+ export const debouncedTws: typeof tws;