@tempots/dom 26.7.0 → 26.7.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/dom",
3
- "version": "26.7.0",
3
+ "version": "26.7.2",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -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 = unknown> = {
12
+ export type Provider<T, O = any> = {
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 = unknown> = {
25
25
  */
26
26
  export type ProviderOptions = {
27
27
  /** The function to use a provider. */
28
- use: <T, O = object>(provider: Provider<T, O>) => T;
28
+ use: <T, O = any>(provider: Provider<T, O>) => T;
29
29
  /** The function to set a provider. */
30
- set: <T, O = object>(provider: Provider<T, O>, options?: O) => void;
30
+ set: <T, O = any>(provider: Provider<T, O>, options?: O) => void;
31
31
  };
32
32
  /**
33
33
  * Returns a renderable function that executes the given function with the
@@ -48,7 +48,7 @@ export declare const WithProvider: (fn: (ctx: ProviderOptions) => TNode | void)
48
48
  * @param options - The options to pass to the provider.
49
49
  * @param child - The child renderable to return.
50
50
  */
51
- export declare const Provide: <T, O extends object>(provider: Provider<T, O>, options: O, child: () => TNode) => Renderable;
51
+ export declare const Provide: <T, O>(provider: Provider<T, O>, options: O, child: () => TNode) => Renderable;
52
52
  /**
53
53
  * Returns a renderable function that uses a provider for the given provider mark and returns a child renderable.
54
54
  *