@stacksjs/composables 0.75.79 → 0.75.81

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.
@@ -7,7 +7,7 @@
7
7
  * const { data, error } = await useMyFetch('/users').get().json()
8
8
  * ```
9
9
  */
10
- export declare function createFetch(config?: CreateFetchOptions): void;
10
+ export declare function createFetch(config?: CreateFetchOptions): boolean;
11
11
  export declare interface CreateFetchOptions {
12
12
  baseUrl?: string
13
13
  options?: RequestInit
@@ -2,4 +2,13 @@ import type { Ref } from '@stacksjs/stx';
2
2
  /**
3
3
  * Like useRefHistory but debounces automatic commits.
4
4
  */
5
- export declare function useDebouncedRefHistory<T>(source: Ref<T>, options?: { capacity?: number, clone?: boolean, debounce?: number }): void;
5
+ export declare function useDebouncedRefHistory<T>(source: Ref<T>, options?: { capacity?: number, clone?: boolean, debounce?: number }): {
6
+ history: unknown;
7
+ commit: unknown;
8
+ undo: unknown;
9
+ redo: unknown;
10
+ canUndo: unknown;
11
+ canRedo: unknown;
12
+ clear: unknown;
13
+ last: unknown
14
+ };
@@ -2,4 +2,13 @@ import type { Ref } from '@stacksjs/stx';
2
2
  /**
3
3
  * Like useRefHistory but throttles automatic commits.
4
4
  */
5
- export declare function useThrottledRefHistory<T>(source: Ref<T>, options?: { capacity?: number, clone?: boolean, throttle?: number }): void;
5
+ export declare function useThrottledRefHistory<T>(source: Ref<T>, options?: { capacity?: number, clone?: boolean, throttle?: number }): {
6
+ history: unknown;
7
+ commit: unknown;
8
+ undo: unknown;
9
+ redo: unknown;
10
+ canUndo: unknown;
11
+ canRedo: unknown;
12
+ clear: unknown;
13
+ last: unknown
14
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/composables",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.79",
5
+ "version": "0.75.81",
6
6
  "description": "Stacks composables powered by stx reactivity.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@stacksjs/stx": "^0.2.378",
55
- "@stacksjs/datetime": "0.75.79"
55
+ "@stacksjs/datetime": "0.75.81"
56
56
  },
57
57
  "devDependencies": {
58
58
  "better-dx": "^0.2.24"