shelving 1.96.1 → 1.96.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/package.json +1 -1
- package/react/useInstance.d.ts +1 -1
- package/react/useLazy.d.ts +2 -2
package/package.json
CHANGED
package/react/useInstance.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import type { Arguments } from "../util/function.js";
|
|
|
4
4
|
* - Creates a new instance of `Constructor` using `args`
|
|
5
5
|
* - Returns same instance for as long as `args` is equal to previous `args`.
|
|
6
6
|
*/
|
|
7
|
-
export declare function useInstance<T, A extends Arguments>(Constructor: new (...a: A) => T, ...args: A): T;
|
|
7
|
+
export declare function useInstance<T, A extends Arguments = []>(Constructor: new (...a: A) => T, ...args: A): T;
|
package/react/useLazy.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import type { Lazy } from "../util/lazy.js";
|
|
|
5
5
|
* - Returns `value` (if not a function) or the result of calling `value(...args)` (if a function).
|
|
6
6
|
* - Returns same `value` for as long as `args` is equal to previous `args`.
|
|
7
7
|
*/
|
|
8
|
-
export declare function useLazy<T, A extends Arguments>(value: (...args: A) => T, ...args: A): T;
|
|
8
|
+
export declare function useLazy<T, A extends Arguments = []>(value: (...args: A) => T, ...args: A): T;
|
|
9
9
|
export declare function useLazy<T>(value: T, ...args: Arguments): T;
|
|
10
|
-
export declare function useLazy<T, A extends Arguments>(value: Lazy<T, A>, ...args: A): T;
|
|
10
|
+
export declare function useLazy<T, A extends Arguments = []>(value: Lazy<T, A>, ...args: A): T;
|