@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
37 lines (36 loc) • 1.02 kB
TypeScript
import type { Inline } from './types/inline-content';
import type { ParagraphDefinition as Paragraph } from './paragraph';
import type { ExtensionDefinition as Extension } from './extension';
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
/**
* @name taskItem_node
*/
export interface TaskItemDefinition {
attrs: {
localId: string;
state: 'TODO' | 'DONE';
};
/**
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @allowUnsupportedInline true
*/
content?: Array<Inline>;
type: 'taskItem';
}
/**
* @name blockTaskItem_node
*/
export interface BlockTaskItemDefinition {
attrs: {
localId: string;
state: 'TODO' | 'DONE';
};
/**
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @allowUnsupportedInline true
*/
content?: Array<Paragraph | Extension>;
type: 'blockTaskItem';
}
export declare const taskItem: NodeSpec;
export declare const blockTaskItem: NodeSpec;