-
Notifications
You must be signed in to change notification settings - Fork 415
Open
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected] for the project I'm working on.
I got the following error:
Type error: Type '{ children: Element[]; split: "vertical"; minSize: number; defaultSize: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<SplitPane> & Pick<Readonly<SplitPaneProps>, never> & InexactPartial<...> & InexactPartial<...>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<SplitPane> & Pick<Readonly<SplitPaneProps>, never> & InexactPartial<...> & InexactPartial<...>'.
7 | const Home: NextPage = () => {
8 | return (
> 9 | <SplitPane split='vertical' minSize={50} defaultSize={100}>
| ^
10 | <div />
11 | <div />
12 | </SplitPane>
Here is the diff that solved my problem:
diff --git a/node_modules/react-split-pane/index.d.ts b/node_modules/react-split-pane/index.d.ts
index d116f54..3c7eb24 100644
--- a/node_modules/react-split-pane/index.d.ts
+++ b/node_modules/react-split-pane/index.d.ts
@@ -5,6 +5,7 @@ export type Size = string | number;
export type Split = 'vertical' | 'horizontal';
export type SplitPaneProps = {
+ children: React.ReactNode[],
allowResize?: boolean;
className?: string;
primary?: 'first' | 'second';This issue body was partially generated by patch-package.
dylanmelhuish, tea-artist, shuangbofu and Reviewlike
Metadata
Metadata
Assignees
Labels
No labels