UNPKG

@yoopta/editor

Version:

<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311

17 lines • 511 B
import { YooEditor, YooptaPathIndex } from '../types'; type DeleteBlockByIdOptions = { blockId: string; at?: never; }; type DeleteBlockByPathOptions = { at: YooptaPathIndex; blockId?: never; }; export type DeleteBlockOptions = (DeleteBlockByIdOptions & { focus?: boolean; }) | (DeleteBlockByPathOptions & { focus?: boolean; }); export declare function deleteBlock(editor: YooEditor, options: DeleteBlockOptions): void; export {}; //# sourceMappingURL=deleteBlock.d.ts.map