UNPKG

545 BTypeScriptView Raw
1import { NodeSpec } from 'prosemirror-model';
2import { TaskItemDefinition as TaskItemNode } from './task-item';
3export interface TaskListContent extends Array<TaskItemNode | TaskListDefinition> {
4 0: TaskItemNode;
5}
6/**
7 * @name taskList_node
8 */
9export interface TaskListDefinition {
10 type: 'taskList';
11 /**
12 * @minItems 1
13 * @allowUnsupportedBlock true
14 */
15 content: TaskListContent;
16 attrs: {
17 localId: string;
18 };
19}
20export declare const taskListSelector: string;
21export declare const taskList: NodeSpec;