@gateweb/react-utils 1.4.1 → 1.4.2

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.
@@ -360,7 +360,7 @@ type TValueOptions<T> = AtLeastOne<{
360
360
  /**
361
361
  *
362
362
  */
363
- declare const useValue: <T>({ value, defaultValue }: TValueOptions<T>) => (T | ((newValue: T) => void))[];
363
+ declare const useValue: <T>({ value, defaultValue }: TValueOptions<T>) => readonly [T, (newValue: T) => void];
364
364
 
365
365
  declare function invariant(condition: any, message?: string | (() => string)): asserts condition;
366
366
 
@@ -360,7 +360,7 @@ type TValueOptions<T> = AtLeastOne<{
360
360
  /**
361
361
  *
362
362
  */
363
- declare const useValue: <T>({ value, defaultValue }: TValueOptions<T>) => (T | ((newValue: T) => void))[];
363
+ declare const useValue: <T>({ value, defaultValue }: TValueOptions<T>) => readonly [T, (newValue: T) => void];
364
364
 
365
365
  declare function invariant(condition: any, message?: string | (() => string)): asserts condition;
366
366
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gateweb/react-utils",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "React Utils for GateWeb",
5
5
  "homepage": "https://github.com/GatewebSolutions/react-utils",
6
6
  "files": [