mirror of
https://github.com/facebook/lexical.git
synced 2025-05-20 16:48:04 +08:00
29 lines
828 B
Plaintext
29 lines
828 B
Plaintext
/**
|
|
* 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, LexicalCommand} 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';
|
|
updateDOM(): false;
|
|
decorate(): React$Node;
|
|
}
|
|
|
|
declare export function $createHorizontalRuleNode(): HorizontalRuleNode;
|
|
declare export function $isHorizontalRuleNode(
|
|
node: ?LexicalNode,
|
|
): node is HorizontalRuleNode;
|
|
|
|
declare export var INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void>;
|