mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Make type defs for lexical react (#1369)
* Add Flow type definitions for Lexical React * Fix bugs * Revert bad merge
This commit is contained in:

committed by
acywatson

parent
1aa140258c
commit
5c9b3566bb
@ -7,7 +7,7 @@
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
import type {CommandListenerEditorPriority} from 'lexical';
|
||||
import type {CommandListenerEditorPriority, ElementNode} from 'lexical';
|
||||
|
||||
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
|
||||
import {
|
||||
@ -23,7 +23,6 @@ import {
|
||||
$getSelection,
|
||||
$isRangeSelection,
|
||||
$isRootNode,
|
||||
ElementNode,
|
||||
} from 'lexical';
|
||||
import {useEffect} from 'react';
|
||||
import invariant from 'shared/invariant';
|
||||
|
Reference in New Issue
Block a user