UNPKG

510 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 */
14 content: TaskListContent;
15 attrs: {
16 localId: string;
17 };
18}
19export declare const taskListSelector: string;
20export declare const taskList: NodeSpec;