mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
22 lines
835 B
TypeScript
22 lines
835 B
TypeScript
/**
|
|
* 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 {EditorConfig, LexicalNode, NodeKey, RangeSelection} from 'lexical';
|
|
import {ElementNode} from 'lexical';
|
|
export declare class OverflowNode extends ElementNode {
|
|
static getType(): string;
|
|
static clone(node: OverflowNode): OverflowNode;
|
|
constructor(key?: NodeKey);
|
|
createDOM(config: EditorConfig): HTMLElement;
|
|
updateDOM(prevNode: OverflowNode, dom: HTMLElement): boolean;
|
|
insertNewAfter(selection: RangeSelection): null | LexicalNode;
|
|
excludeFromCopy(): boolean;
|
|
}
|
|
export function $createOverflowNode(): OverflowNode;
|
|
export function $isOverflowNode(node: LexicalNode | null): node is OverflowNode;
|