@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.
- package/dist/cjs/index.d.ts +1 -1
- package/dist/es/index.d.mts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -360,7 +360,7 @@ type TValueOptions<T> = AtLeastOne<{
|
|
|
360
360
|
/**
|
|
361
361
|
*
|
|
362
362
|
*/
|
|
363
|
-
declare const useValue: <T>({ value, defaultValue }: TValueOptions<T>) =>
|
|
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/dist/es/index.d.mts
CHANGED
|
@@ -360,7 +360,7 @@ type TValueOptions<T> = AtLeastOne<{
|
|
|
360
360
|
/**
|
|
361
361
|
*
|
|
362
362
|
*/
|
|
363
|
-
declare const useValue: <T>({ value, defaultValue }: TValueOptions<T>) =>
|
|
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
|
|