mirror of
https://github.com/facebook/lexical.git
synced 2025-08-26 02:39:24 +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
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* 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 {LexicalNode} from 'lexical';
|
||||
|
||||
import {DecoratorNode} from 'lexical';
|
||||
|
||||
declare export class HorizontalRuleNode extends DecoratorNode<React$Node> {
|
||||
static getType(): string;
|
||||
static clone(node: HorizontalRuleNode): HorizontalRuleNode;
|
||||
createDOM(): HTMLElement;
|
||||
getTextContent(): '\n';
|
||||
isTopLevel(): true;
|
||||
updateDOM(): false;
|
||||
decorate(): React$Node;
|
||||
}
|
||||
|
||||
declare export function $createHorizontalRuleNode(): HorizontalRuleNode;
|
||||
declare export function $isHorizontalRuleNode(node: ?LexicalNode): boolean;
|
Reference in New Issue
Block a user