Loosen node and version types (#4143)

This commit is contained in:
John Flockton
2023-04-04 15:27:23 +01:00
committed by GitHub
parent a9ef58759a
commit 1859223fbe
36 changed files with 29 additions and 193 deletions

View File

@ -13,18 +13,11 @@ import type {
NodeKey,
RangeSelection,
SerializedElementNode,
Spread,
} from 'lexical';
import {$applyNodeReplacement, ElementNode} from 'lexical';
export type SerializedOverflowNode = Spread<
{
type: 'overflow';
version: 1;
},
SerializedElementNode
>;
export type SerializedOverflowNode = SerializedElementNode;
/** @noInheritDoc */
export class OverflowNode extends ElementNode {