We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f9b7e8 + cbd26ab commit 16ce1b0Copy full SHA for 16ce1b0
src/ThunkContext.tsx
@@ -4,7 +4,7 @@ import { THUNK_CONTEXT_MAP } from './thunkContextMap'
4
5
type Props = {
6
classes?: string[]
7
- children?: JSX.Element[]
+ children?: JSX.Element | JSX.Element[]
8
}
9
const ThunkContext = (props: Props): JSX.Element => {
10
let { classes, children } = props
types/ThunkContext.d.ts
@@ -1,7 +1,7 @@
1
import { type JSX } from 'react';
2
3
classes?: string[];
- children?: JSX.Element[];
+ children?: JSX.Element | JSX.Element[];
};
declare const ThunkContext: (props: Props) => JSX.Element;
export default ThunkContext;
0 commit comments