@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
18 lines (17 loc) • 387 B
TypeScript
import { NodeSpec } from 'prosemirror-model';
import { Inline } from './types/inline-content';
/**
* @name taskItem_node
*/
export interface TaskItemDefinition {
type: 'taskItem';
/**
* @allowUnsupportedInline true
*/
content?: Array<Inline>;
attrs: {
localId: string;
state: 'TODO' | 'DONE';
};
}
export declare const taskItem: NodeSpec;