@tempots/dom 26.2.0 → 26.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/dom",
3
- "version": "26.2.0",
3
+ "version": "26.3.0",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,13 +1,5 @@
1
1
  import { DOMContext } from '../dom/dom-context';
2
2
  import { ProviderMark, Renderable, TNode } from '../types/domain';
3
- /**
4
- * Converts a tuple type `T` into an array of `Provider` types.
5
- * If `T` is an empty tuple, returns an empty array.
6
- * If `T` has only one element, returns an array with a single `Provider`.
7
- * If `T` has more than one element, recursively converts each element into a `Provider` and returns an array.
8
- * @public
9
- */
10
- export type ToArrayOfProviders<T extends unknown[]> = T extends [] ? [] : T extends [infer K] ? [Provider<K>] : T extends [infer K, ...infer R] ? [Provider<K>, ...ToArrayOfProviders<R>] : never;
11
3
  /**
12
4
  * Converts an array of `Provider` types `T` into an array of their corresponding types.
13
5
  * @public
@@ -70,4 +62,4 @@ export declare const Use: <T>(provider: Provider<T>, child: (provider: T) => TNo
70
62
  * @param providers - The provider marks to use the providers for.
71
63
  * @param child - The child renderable to return.
72
64
  */
73
- export declare const UseMany: <T extends unknown[]>(...providers: ToArrayOfProviders<T>) => (child: (...values: ToProviderTypes<T>) => TNode) => Renderable;
65
+ export declare const UseMany: <T extends Provider<unknown>[]>(...providers: T) => (child: (...values: ToProviderTypes<T>) => TNode) => Renderable;