@tempots/ui 1.2.1-next.2 → 1.2.1-next.3

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/ui",
3
- "version": "1.2.1-next.2",
3
+ "version": "1.2.1-next.3",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,4 +1,4 @@
1
- import { Signal, TNode } from '@tempots/dom';
1
+ import { Renderable, Signal, TNode } from '@tempots/dom';
2
2
  import { AsyncResource, ResourceLoadOptions } from '../utils/resource';
3
3
  /**
4
4
  * Options for displaying the different states of an asynchronous resource.
@@ -28,7 +28,7 @@ export interface ResourceDisplayOptions<V, E> {
28
28
  * @returns {TNode} A node representing the current state of the resource.
29
29
  * @public
30
30
  */
31
- export declare const ResourceDisplay: <V, E>(resource: AsyncResource<V, E>, options: ResourceDisplayOptions<V, E>) => import('@tempots/dom').Renderable;
31
+ export declare const ResourceDisplay: <V, E>(resource: AsyncResource<V, E>, options: ResourceDisplayOptions<V, E>) => Renderable;
32
32
  /**
33
33
  * Creates and displays an asynchronous resource.
34
34
  *
@@ -42,4 +42,4 @@ export declare const ResourceDisplay: <V, E>(resource: AsyncResource<V, E>, opti
42
42
  * @returns A function that takes display options and returns a node representing the current state of the resource.
43
43
  * @public
44
44
  */
45
- export declare const Resource: <R, V, E>(request: Signal<R>, load: (options: ResourceLoadOptions<R, V, E>) => Promise<V>, convertError: (error: unknown) => E) => (displayOptions: ResourceDisplayOptions<V, E>) => import('@tempots/dom').Renderable;
45
+ export declare const Resource: <R, V, E>(request: Signal<R>, load: (options: ResourceLoadOptions<R, V, E>) => Promise<V>, convertError: (error: unknown) => E) => ((displayOptions: ResourceDisplayOptions<V, E>) => Renderable);