@aweebit/react-essentials 0.10.2 → 0.10.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/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
  const useEventListener: UseEventListener;
21
21
  ```
22
22
 
23
- Defined in: [hooks/useEventListener.ts:135](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L135)
23
+ Defined in: [hooks/useEventListener.ts:135](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L135)
24
24
 
25
25
  Adds `handler` as a listener for the event `eventName` of `target` with the
26
26
  provided `options` applied
@@ -71,7 +71,7 @@ function useReducerWithDeps<S, A>(
71
71
  ): [S, ActionDispatch<A>];
72
72
  ```
73
73
 
74
- Defined in: [hooks/useReducerWithDeps.ts:59](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useReducerWithDeps.ts#L59)
74
+ Defined in: [hooks/useReducerWithDeps.ts:59](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useReducerWithDeps.ts#L59)
75
75
 
76
76
  `useReducer` hook with an additional dependency array `deps` that resets the
77
77
  state to `initialState` when dependencies change
@@ -214,7 +214,7 @@ function useStateWithDeps<S>(
214
214
  ): [S, Dispatch<SetStateAction<S>>];
215
215
  ```
216
216
 
217
- Defined in: [hooks/useStateWithDeps.ts:62](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useStateWithDeps.ts#L62)
217
+ Defined in: [hooks/useStateWithDeps.ts:62](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useStateWithDeps.ts#L62)
218
218
 
219
219
  `useState` hook with an additional dependency array `deps` that resets the
220
220
  state to `initialState` when dependencies change
@@ -344,7 +344,7 @@ Dependencies that reset the state to `initialState`
344
344
  function contextualize(jsx): ContextualizePipe;
345
345
  ```
346
346
 
347
- Defined in: [misc/contextualize.tsx:79](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/contextualize.tsx#L79)
347
+ Defined in: [misc/contextualize.tsx:79](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/contextualize.tsx#L79)
348
348
 
349
349
  An alternative way to provide context values to component trees that avoids
350
350
  ever-increasing indentation
@@ -405,7 +405,7 @@ return contextualize(jsx)
405
405
  </td>
406
406
  <td>
407
407
 
408
- `undefined` \| `Element`
408
+ `Element`
409
409
 
410
410
  </td>
411
411
  <td>
@@ -444,7 +444,7 @@ function createSafeContext<T>(): <DisplayName>(displayName) => {
444
444
  };
445
445
  ```
446
446
 
447
- Defined in: [misc/createSafeContext.ts:62](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/createSafeContext.ts#L62)
447
+ Defined in: [misc/createSafeContext.ts:62](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/createSafeContext.ts#L62)
448
448
 
449
449
  For a given type `T`, returns a function that produces both a context of that
450
450
  type and a hook that returns the current context value if one was provided,
@@ -589,7 +589,7 @@ A function that accepts a single string argument `displayName` (e.g.
589
589
  function wrapJSX(jsx): JSXWrapPipe;
590
590
  ```
591
591
 
592
- Defined in: [misc/wrapJSX.tsx:93](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/wrapJSX.tsx#L93)
592
+ Defined in: [misc/wrapJSX.tsx:93](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/wrapJSX.tsx#L93)
593
593
 
594
594
  An alternative way to compose JSX that avoids ever-increasing indentation
595
595
 
@@ -648,7 +648,7 @@ createRoot(document.getElementById('root')!).render(
648
648
  </td>
649
649
  <td>
650
650
 
651
- `undefined` \| `Element`
651
+ `Element`
652
652
 
653
653
  </td>
654
654
  <td>
@@ -685,7 +685,7 @@ type UseEventListener = UseEventListenerWithImplicitWindowTarget &
685
685
  UseEventListenerWithAnyExplicitTarget;
686
686
  ```
687
687
 
688
- Defined in: [hooks/useEventListener.ts:12](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L12)
688
+ Defined in: [hooks/useEventListener.ts:12](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L12)
689
689
 
690
690
  The type of [`useEventListener`](#useeventlistener)
691
691
 
@@ -704,7 +704,7 @@ The type of [`useEventListener`](#useeventlistener)
704
704
  type UseEventListenerWithImplicitWindowTarget = <K>(...args) => void;
705
705
  ```
706
706
 
707
- Defined in: [hooks/useEventListener.ts:21](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L21)
707
+ Defined in: [hooks/useEventListener.ts:21](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L21)
708
708
 
709
709
  ### Type Parameters
710
710
 
@@ -772,7 +772,7 @@ type UseEventListenerWithExplicitGlobalTarget =
772
772
  UseEventListenerWithExplicitTarget<MathMLElement, MathMLElementEventMap>;
773
773
  ```
774
774
 
775
- Defined in: [hooks/useEventListener.ts:32](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L32)
775
+ Defined in: [hooks/useEventListener.ts:32](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L32)
776
776
 
777
777
  ### See
778
778
 
@@ -789,7 +789,7 @@ type UseEventListenerWithExplicitTarget<Target, EventMap> = <T, K>(
789
789
  ) => void;
790
790
  ```
791
791
 
792
- Defined in: [hooks/useEventListener.ts:44](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L44)
792
+ Defined in: [hooks/useEventListener.ts:44](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L44)
793
793
 
794
794
  ### Type Parameters
795
795
 
@@ -888,7 +888,7 @@ type UseEventListenerWithAnyExplicitTarget = UseEventListenerWithExplicitTarget<
888
888
  >;
889
889
  ```
890
890
 
891
- Defined in: [hooks/useEventListener.ts:56](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L56)
891
+ Defined in: [hooks/useEventListener.ts:56](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L56)
892
892
 
893
893
  ### See
894
894
 
@@ -909,7 +909,7 @@ type UseEventListenerWithImplicitWindowTargetArgs<K> =
909
909
  : never;
910
910
  ```
911
911
 
912
- Defined in: [hooks/useEventListener.ts:64](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L64)
912
+ Defined in: [hooks/useEventListener.ts:64](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L64)
913
913
 
914
914
  ### Type Parameters
915
915
 
@@ -954,7 +954,7 @@ type UseEventListenerWithExplicitTargetArgs<EventMap, T, K> = [
954
954
  ];
955
955
  ```
956
956
 
957
- Defined in: [hooks/useEventListener.ts:78](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/hooks/useEventListener.ts#L78)
957
+ Defined in: [hooks/useEventListener.ts:78](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/hooks/useEventListener.ts#L78)
958
958
 
959
959
  ### Type Parameters
960
960
 
@@ -1000,11 +1000,11 @@ Defined in: [hooks/useEventListener.ts:78](https://github.com/aweebit/react-esse
1000
1000
  ```ts
1001
1001
  type ContextualizePipe = {
1002
1002
  with: ContextualizeWith;
1003
- end: () => React.JSX.Element | undefined;
1003
+ end: () => React.JSX.Element;
1004
1004
  };
1005
1005
  ```
1006
1006
 
1007
- Defined in: [misc/contextualize.tsx:13](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/contextualize.tsx#L13)
1007
+ Defined in: [misc/contextualize.tsx:13](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/contextualize.tsx#L13)
1008
1008
 
1009
1009
  The return type of [`contextualize`](#contextualize)
1010
1010
 
@@ -1043,7 +1043,7 @@ The return type of [`contextualize`](#contextualize)
1043
1043
  </td>
1044
1044
  <td>
1045
1045
 
1046
- () => `React.JSX.Element` \| `undefined`
1046
+ () => `React.JSX.Element`
1047
1047
 
1048
1048
  </td>
1049
1049
  </tr>
@@ -1058,7 +1058,7 @@ The return type of [`contextualize`](#contextualize)
1058
1058
  type ContextualizeWith = <T>(Context, value) => ContextualizePipe;
1059
1059
  ```
1060
1060
 
1061
- Defined in: [misc/contextualize.tsx:23](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/contextualize.tsx#L23)
1061
+ Defined in: [misc/contextualize.tsx:23](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/contextualize.tsx#L23)
1062
1062
 
1063
1063
  ### Type Parameters
1064
1064
 
@@ -1132,11 +1132,11 @@ Defined in: [misc/contextualize.tsx:23](https://github.com/aweebit/react-essenti
1132
1132
  ```ts
1133
1133
  type JSXWrapPipe = {
1134
1134
  with: WrapJSXWith;
1135
- end: () => React.JSX.Element | undefined;
1135
+ end: () => React.JSX.Element;
1136
1136
  };
1137
1137
  ```
1138
1138
 
1139
- Defined in: [misc/wrapJSX.tsx:17](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/wrapJSX.tsx#L17)
1139
+ Defined in: [misc/wrapJSX.tsx:17](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/wrapJSX.tsx#L17)
1140
1140
 
1141
1141
  The return type of [`wrapJSX`](#wrapjsx)
1142
1142
 
@@ -1175,7 +1175,7 @@ The return type of [`wrapJSX`](#wrapjsx)
1175
1175
  </td>
1176
1176
  <td>
1177
1177
 
1178
- () => `React.JSX.Element` \| `undefined`
1178
+ () => `React.JSX.Element`
1179
1179
 
1180
1180
  </td>
1181
1181
  </tr>
@@ -1190,7 +1190,7 @@ The return type of [`wrapJSX`](#wrapjsx)
1190
1190
  type WrapJSXWith = <C>(...args) => JSXWrapPipe;
1191
1191
  ```
1192
1192
 
1193
- Defined in: [misc/wrapJSX.tsx:27](https://github.com/aweebit/react-essentials/blob/v0.10.2/src/misc/wrapJSX.tsx#L27)
1193
+ Defined in: [misc/wrapJSX.tsx:27](https://github.com/aweebit/react-essentials/blob/v0.10.3/src/misc/wrapJSX.tsx#L27)
1194
1194
 
1195
1195
  ### Type Parameters
1196
1196
 
@@ -8,7 +8,7 @@ import type { Context, default as React } from 'react';
8
8
  */
9
9
  export type ContextualizePipe = {
10
10
  with: ContextualizeWith;
11
- end: () => React.JSX.Element | undefined;
11
+ end: () => React.JSX.Element;
12
12
  };
13
13
  /**
14
14
  * @see
@@ -67,5 +67,5 @@ export type ContextualizeWith = <T>(Context: Context<T>, value: NoInfer<T>) => C
67
67
  * @see
68
68
  * {@linkcode ContextualizePipe}
69
69
  */
70
- export declare function contextualize(jsx: React.JSX.Element | undefined): ContextualizePipe;
70
+ export declare function contextualize(jsx: React.JSX.Element): ContextualizePipe;
71
71
  //# sourceMappingURL=contextualize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contextualize.d.ts","sourceRoot":"","sources":["../../src/misc/contextualize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AAKvD;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAChC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KACd,iBAAiB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,GACjC,iBAAiB,CAWnB"}
1
+ {"version":3,"file":"contextualize.d.ts","sourceRoot":"","sources":["../../src/misc/contextualize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AAKvD;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAChC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KACd,iBAAiB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,iBAAiB,CAWvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"contextualize.js","sourceRoot":"","sources":["../../src/misc/contextualize.tsx"],"names":[],"mappings":";AA2BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,UAAU,aAAa,CAC3B,GAAkC;IAElC,OAAO;QACL,IAAI,CAAI,OAAmB,EAAE,KAAQ;YACnC,OAAO,aAAa,CAClB,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,GAAG,GAAoB,CACzD,CAAC;QACJ,CAAC;QACD,GAAG;YACD,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"contextualize.js","sourceRoot":"","sources":["../../src/misc/contextualize.tsx"],"names":[],"mappings":";AA2BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,UAAU,aAAa,CAAC,GAAsB;IAClD,OAAO;QACL,IAAI,CAAI,OAAmB,EAAE,KAAQ;YACnC,OAAO,aAAa,CAClB,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,GAAG,GAAoB,CACzD,CAAC;QACJ,CAAC;QACD,GAAG;YACD,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -8,7 +8,7 @@ import type { ComponentProps, JSXElementConstructor, default as React } from 're
8
8
  */
9
9
  export type JSXWrapPipe = {
10
10
  with: WrapJSXWith;
11
- end: () => React.JSX.Element | undefined;
11
+ end: () => React.JSX.Element;
12
12
  };
13
13
  /**
14
14
  * @see
@@ -72,5 +72,5 @@ export type WrapJSXWith = <C extends keyof JSX.IntrinsicElements | JSXElementCon
72
72
  * @see
73
73
  * {@linkcode JSXWrapPipe}
74
74
  */
75
- export declare function wrapJSX(jsx: React.JSX.Element | undefined): JSXWrapPipe;
75
+ export declare function wrapJSX(jsx: React.JSX.Element): JSXWrapPipe;
76
76
  //# sourceMappingURL=wrapJSX.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrapJSX.d.ts","sourceRoot":"","sources":["../../src/misc/wrapJSX.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,OAAO,IAAI,KAAK,EACjB,MAAM,OAAO,CAAC;AAKf;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAErB,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,qBAAqB,CAAC,GAAG,CAAC,EACjE,GAAG,IAAI,EAAE;IACP,SAAS,EAAE,CAAC;IACZ,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAClE;QACE,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,GACnC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;KACtC,GACD;QACE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAClC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;KACtC,CAAC;CACP,KACE,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,GAAG,WAAW,CAcvE"}
1
+ {"version":3,"file":"wrapJSX.d.ts","sourceRoot":"","sources":["../../src/misc/wrapJSX.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,OAAO,IAAI,KAAK,EACjB,MAAM,OAAO,CAAC;AAKf;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAErB,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,qBAAqB,CAAC,GAAG,CAAC,EACjE,GAAG,IAAI,EAAE;IACP,SAAS,EAAE,CAAC;IACZ,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAClE;QACE,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,GACnC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;KACtC,GACD;QACE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAClC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;KACtC,CAAC;CACP,KACE,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,WAAW,CAc3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrapJSX.js","sourceRoot":"","sources":["../../src/misc/wrapJSX.tsx"],"names":[],"mappings":";AA2CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,UAAU,OAAO,CAAC,GAAkC;IACxD,OAAO;QACL,IAAI,CACF,SAEiC,EACjC,QAAgB,EAAE;YAElB,OAAO,OAAO,CAAC,KAAC,SAAS,OAAK,KAAK,YAAG,GAAG,GAAa,CAAC,CAAC;QAC1D,CAAC;QACD,GAAG;YACD,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"wrapJSX.js","sourceRoot":"","sources":["../../src/misc/wrapJSX.tsx"],"names":[],"mappings":";AA2CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,UAAU,OAAO,CAAC,GAAsB;IAC5C,OAAO;QACL,IAAI,CACF,SAEiC,EACjC,QAAgB,EAAE;YAElB,OAAO,OAAO,CAAC,KAAC,SAAS,OAAK,KAAK,YAAG,GAAG,GAAa,CAAC,CAAC;QAC1D,CAAC;QACD,GAAG;YACD,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aweebit/react-essentials",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "type": "module",
5
5
  "repository": "github:aweebit/react-essentials",
6
6
  "main": "dist/index.js",
@@ -12,7 +12,7 @@ import type { wrapJSX } from './wrapJSX.js';
12
12
  */
13
13
  export type ContextualizePipe = {
14
14
  with: ContextualizeWith;
15
- end: () => React.JSX.Element | undefined;
15
+ end: () => React.JSX.Element;
16
16
  };
17
17
 
18
18
  /**
@@ -76,9 +76,7 @@ export type ContextualizeWith = <T>(
76
76
  * @see
77
77
  * {@linkcode ContextualizePipe}
78
78
  */
79
- export function contextualize(
80
- jsx: React.JSX.Element | undefined,
81
- ): ContextualizePipe {
79
+ export function contextualize(jsx: React.JSX.Element): ContextualizePipe {
82
80
  return {
83
81
  with<T>(Context: Context<T>, value: T) {
84
82
  return contextualize(
@@ -16,7 +16,7 @@ import type { contextualize } from './contextualize.js';
16
16
  */
17
17
  export type JSXWrapPipe = {
18
18
  with: WrapJSXWith;
19
- end: () => React.JSX.Element | undefined;
19
+ end: () => React.JSX.Element;
20
20
  };
21
21
 
22
22
  /**
@@ -90,7 +90,7 @@ export type WrapJSXWith =
90
90
  * @see
91
91
  * {@linkcode JSXWrapPipe}
92
92
  */
93
- export function wrapJSX(jsx: React.JSX.Element | undefined): JSXWrapPipe {
93
+ export function wrapJSX(jsx: React.JSX.Element): JSXWrapPipe {
94
94
  return {
95
95
  with(
96
96
  Component: