Skip to content

Commit 16ce1b0

Browse files
authored
Merge pull request #144 from chhsiao1981/thunk-context-children-type
children in ThunkContext as JSX.Element or JSX.Element[]
2 parents 7f9b7e8 + cbd26ab commit 16ce1b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ThunkContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { THUNK_CONTEXT_MAP } from './thunkContextMap'
44

55
type Props = {
66
classes?: string[]
7-
children?: JSX.Element[]
7+
children?: JSX.Element | JSX.Element[]
88
}
99
const ThunkContext = (props: Props): JSX.Element => {
1010
let { classes, children } = props

types/ThunkContext.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type JSX } from 'react';
22
type Props = {
33
classes?: string[];
4-
children?: JSX.Element[];
4+
children?: JSX.Element | JSX.Element[];
55
};
66
declare const ThunkContext: (props: Props) => JSX.Element;
77
export default ThunkContext;

0 commit comments

Comments
 (0)