mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Loosen node and version types (#4143)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user