@stacksjs/stx 0.2.150 → 0.2.152

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.
@@ -65,15 +65,7 @@ export declare function useWindowSize(): {
65
65
  * ```
66
66
  */
67
67
  export declare function useMediaQuery(query: string): { readonly value: boolean };
68
- /**
69
- * Common breakpoint helpers.
70
- *
71
- * @example
72
- * ```typescript
73
- * const { isMobile, isTablet, isDesktop } = useBreakpoints()
74
- * ```
75
- */
76
- export declare function useBreakpoints(): void;
68
+ export declare function useBreakpoints(): BreakpointsRef;
77
69
  /**
78
70
  * Detect dark mode preference.
79
71
  *
@@ -295,6 +287,21 @@ export declare function useAsync<T>(fn: () => Promise<T>, options?: { immediate?
295
287
  error: { readonly value: Error | null }
296
288
  execute: () => Promise<T | null>
297
289
  };
290
+ /**
291
+ * Common breakpoint helpers.
292
+ *
293
+ * @example
294
+ * ```typescript
295
+ * const { isMobile, isTablet, isDesktop } = useBreakpoints()
296
+ * ```
297
+ */
298
+ /** Handle returned by {@link useBreakpoints}. */
299
+ export declare interface BreakpointsRef {
300
+ isMobile: { readonly value: boolean }
301
+ isTablet: { readonly value: boolean }
302
+ isDesktop: { readonly value: boolean }
303
+ isLargeDesktop: { readonly value: boolean }
304
+ }
298
305
  // =============================================================================
299
306
  // Async Composables
300
307
  // =============================================================================