@adamjanicki/ui 1.8.0 → 1.8.1

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.
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import type { Children } from "../../utils/types";
3
2
  type FallbackProps = {
4
3
  error: Error;
5
4
  reset: () => void;
@@ -12,7 +11,7 @@ type Props = {
12
11
  /**
13
12
  * Children wrapped by the error boundary
14
13
  */
15
- children: Children;
14
+ children: React.ReactNode;
16
15
  /**
17
16
  * Called when an error is caught
18
17
  */
@@ -38,6 +37,6 @@ export default class ErrorBoundary extends React.Component<Props, State> {
38
37
  componentDidUpdate(prevProps: Readonly<Props>): void;
39
38
  private resetErrorBoundary;
40
39
  private depsUpdated;
41
- render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
40
+ render(): React.ReactNode;
42
41
  }
43
42
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamjanicki/ui",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Basic UI components and hooks for React in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./index.js",