@tempots/dom 26.4.0 → 26.7.0
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/renderable/provider.d.ts +3 -3
package/package.json
CHANGED
package/renderable/provider.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type ToProviderTypes<T extends unknown[]> = T extends [] ? [] : T extends
|
|
|
9
9
|
* Represents a provider for a specific type `T`.
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
export type Provider<T, O
|
|
12
|
+
export type Provider<T, O = unknown> = {
|
|
13
13
|
/** The provider mark. */
|
|
14
14
|
mark: ProviderMark<T>;
|
|
15
15
|
/** The function to create the provider. */
|
|
@@ -25,9 +25,9 @@ export type Provider<T, O extends object = object> = {
|
|
|
25
25
|
*/
|
|
26
26
|
export type ProviderOptions = {
|
|
27
27
|
/** The function to use a provider. */
|
|
28
|
-
use: <T, O
|
|
28
|
+
use: <T, O = object>(provider: Provider<T, O>) => T;
|
|
29
29
|
/** The function to set a provider. */
|
|
30
|
-
set: <T, O
|
|
30
|
+
set: <T, O = object>(provider: Provider<T, O>, options?: O) => void;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Returns a renderable function that executes the given function with the
|