mirror of
https://github.com/facebook/lexical.git
synced 2025-08-26 21:30:17 +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
19
packages/lexical-react/flow/LexicalTreeView.js.flow
Normal file
19
packages/lexical-react/flow/LexicalTreeView.js.flow
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
import type {LexicalEditor} from 'lexical';
|
||||
|
||||
declare export default function TreeView(props: {
|
||||
timeTravelPanelClassName: string,
|
||||
timeTravelPanelSliderClassName: string,
|
||||
timeTravelPanelButtonClassName: string,
|
||||
timeTravelButtonClassName: string,
|
||||
viewClassName: string,
|
||||
editor: LexicalEditor,
|
||||
}): React$Node;
|
Reference in New Issue
Block a user