PasteBlock
Type Stability: stable
Definition
TypeScript
import type { PasteBlock } from '@aionbuilders/nabu/extend';TypeScript
interface PasteBlock {
children?: PasteBlock[];
delta?: Delta<string>[];
partial?: false | 'both' | 'start' | 'end';
props?: Record<string, any>;
type: string;
}Properties
| Property | Type | Description |
|---|---|---|
childrenoptional | PasteBlock[] | n/a |
deltaoptional | Delta<string>[] | n/a |
partialoptional | false | 'both' | 'start' | 'end' | absent = false (a whole block) |
propsoptional | Record<string, any> | n/a |
type | string | n/a |
Source: src/lib/utils/extensions.js:6