Files
lexical/packages/lexical-overflow/LexicalOverflow.d.ts
John Flockton c8b7add27d Migrate last 2 packages to TS (10/n) (#2237)
* Run migration scripts

* Fix more difficult types

* Remove shared modules

* debug failing build

* Fix small bugs

* Remove unnecessary types for getLatest and getWritable

* Fix failing unit test

* Fix small type error in playground due to empty editor config
2022-05-24 14:15:39 +01:00

41 lines
1.1 KiB
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.
*
*/
import type {
EditorConfig,
LexicalNode,
NodeKey,
RangeSelection,
SerializedElementNode,
} from 'lexical';
import {ElementNode} from 'lexical';
import {Spread} from 'libdefs/globals';
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;
static importJSON(serializedNode: SerializedOverflowNode): OverflowNode;
exportJSON(): SerializedElementNode;
}
export function $createOverflowNode(): OverflowNode;
export function $isOverflowNode(node: LexicalNode | null): node is OverflowNode;
export type SerializedOverflowNode = Spread<
{
type: 'overflow';
},
SerializedElementNode
>;