@cleanweb/oore 2.0.0-alpha.29 → 2.0.0-alpha.30

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.
@@ -1,10 +1,11 @@
1
+ import type { SetStateAction } from 'react.js';
1
2
  import { debounce } from './index.js';
2
3
  type TDebounceConfig = Exclude<Parameters<typeof debounce>[1], number>;
3
4
  type TDelayConfig = number | TDebounceConfig & {
4
5
  staging?: boolean;
5
6
  };
6
7
  export declare function useDebouncedState<T extends any>(init: T, config: TDelayConfig): readonly [T, {
7
- (value: T): void;
8
+ (value: SetStateAction<T>): void;
8
9
  flush: (isEager?: true) => void;
9
10
  pause(): void;
10
11
  resume(): void;
@@ -1,10 +1,11 @@
1
+ import type { SetStateAction } from 'react.js';
1
2
  import { debounce } from './index.js';
2
3
  type TDebounceConfig = Exclude<Parameters<typeof debounce>[1], number>;
3
4
  type TDelayConfig = number | TDebounceConfig & {
4
5
  staging?: boolean;
5
6
  };
6
7
  export declare function useDebouncedState<T extends any>(init: T, config: TDelayConfig): readonly [T, {
7
- (value: T): void;
8
+ (value: SetStateAction<T>): void;
8
9
  flush: (isEager?: true) => void;
9
10
  pause(): void;
10
11
  resume(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleanweb/oore",
3
- "version": "2.0.0-alpha.29",
3
+ "version": "2.0.0-alpha.30",
4
4
  "description": "A library of helpers for writing cleaner React function components with object-oriented patterns.",
5
5
  "engines": {
6
6
  "node": ">=22"