@weftui/core 0.0.0 → 0.20.9

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +5 -1
package/dist/index.d.ts CHANGED
@@ -34,10 +34,10 @@ declare namespace Node {
34
34
  /** Extract the requirement channel `R` from a {@link Node} (a static node ⇒ `never`). */
35
35
  type Context<N> = [N] extends [Effect.Effect<any, any, infer R>] ? R : never;
36
36
  }
37
- /** Extract E from a props object — Stream/Effect/Subscribable prop values contribute their E channel. */
38
- type PropsE<P> = { [K in keyof P]: P[K] extends Stream.Stream<any, infer E, any> ? E : P[K] extends Effect.Effect<any, infer E, any> ? E : P[K] extends Subscribable.Subscribable<any, infer E, any> ? E : never }[keyof P];
39
- /** Extract R from a props object — Stream/Effect/Subscribable prop values contribute their R channel. */
40
- type PropsR<P> = { [K in keyof P]: P[K] extends Stream.Stream<any, any, infer R> ? R : P[K] extends Effect.Effect<any, any, infer R> ? R : P[K] extends Subscribable.Subscribable<any, any, infer R> ? R : never }[keyof P];
37
+ /** Extract E from a props object — Stream/Effect/Subscribable prop values and Effect-returning event handlers contribute their E channel. */
38
+ type PropsE<P> = { [K in keyof P]: P[K] extends Stream.Stream<any, infer E, any> ? E : P[K] extends Effect.Effect<any, infer E, any> ? E : P[K] extends Subscribable.Subscribable<any, infer E, any> ? E : P[K] extends ((...args: any[]) => infer Ret) ? Ret extends Effect.Effect<any, infer E, any> ? E : never : never }[keyof P];
39
+ /** Extract R from a props object — Stream/Effect/Subscribable prop values and Effect-returning event handlers contribute their R channel. */
40
+ type PropsR<P> = { [K in keyof P]: P[K] extends Stream.Stream<any, any, infer R> ? R : P[K] extends Effect.Effect<any, any, infer R> ? R : P[K] extends Subscribable.Subscribable<any, any, infer R> ? R : P[K] extends ((...args: any[]) => infer Ret) ? Ret extends Effect.Effect<any, any, infer R> ? R : never : never }[keyof P];
41
41
  /** Extract E from a children array — Node (Effect) and Stream children contribute their E. */
42
42
  type ChildrenE<T extends readonly Renderable[]> = [T[number]] extends [never] ? never : { [K in keyof T]: T[K] extends Effect.Effect<any, infer E, any> ? E : T[K] extends Stream.Stream<any, infer E, any> ? E : never }[number];
43
43
  /** Extract R from a children array — Node (Effect) and Stream children contribute their R. */
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@weftui/core",
3
- "version": "0.0.0",
3
+ "version": "0.20.9",
4
4
  "description": "Shared rendering infrastructure for Weft",
5
5
  "license": "MIT",
6
6
  "author": "Stef van Wijchen",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/stefvw93/weft"
10
+ },
7
11
  "files": [
8
12
  "dist"
9
13
  ],