Skip to content

Commit

Permalink
Fixes React TypeScript Element can be had only one child error (faceb…
Browse files Browse the repository at this point in the history
…ook#1734)

* Fixes React TypeScript only one child bug error

* Fixes React TypeScript Element can be had only one child error for LexicalNestedComposer

* Delete yarn.lock
  • Loading branch information
MustafaEminn authored Apr 14, 2022
1 parent bd86322 commit 80ed1d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/lexical-react/LexicalComposer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ type Props = {
theme?: EditorThemeClasses;
onError: (error: Error, editor: LexicalEditor) => void;
};
children: JSX.Element | null;
children: JSX.Element | JSX.Element[] | null;
};
export default function LexicalComposer(arg0: Props): JSX.Element | null;
2 changes: 1 addition & 1 deletion packages/lexical-react/LexicalNestedComposer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ import type {LexicalEditor, EditorThemeClasses} from 'lexical';
export default function LexicalNestedComposer(arg0: {
initialEditor: LexicalEditor;
initialTheme?: EditorThemeClasses;
children: JSX.Element | null;
children: JSX.Element | JSX.Element[] | null;
}): JSX.Element | null;

0 comments on commit 80ed1d1

Please sign in to comment.