@chhsiao1981/use-thunk 10.1.1 → 10.1.2

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": "@chhsiao1981/use-thunk",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "type": "module",
5
5
  "description": "A framework easily using useThunk to manage the data-state.",
6
6
  "homepage": "https://github.com/chhsiao1981/use-thunk",
@@ -4,7 +4,7 @@ import { THUNK_CONTEXT_MAP } from './thunkContextMap'
4
4
 
5
5
  type Props = {
6
6
  classes?: string[]
7
- children?: JSX.Element[]
7
+ children?: JSX.Element | JSX.Element[]
8
8
  }
9
9
  const ThunkContext = (props: Props): JSX.Element => {
10
10
  let { classes, children } = props
@@ -1,7 +1,7 @@
1
1
  import { type JSX } from 'react';
2
2
  type Props = {
3
3
  classes?: string[];
4
- children?: JSX.Element[];
4
+ children?: JSX.Element | JSX.Element[];
5
5
  };
6
6
  declare const ThunkContext: (props: Props) => JSX.Element;
7
7
  export default ThunkContext;