prosemirror-flat-list
Version:
Powerful list support for ProseMirror
32 lines (27 loc) • 593 B
text/typescript
import type { Attrs, Node } from 'prosemirror-model'
/**
* All default list node kinds.
*
* @public @group Schema
*/
export type ListKind = 'bullet' | 'ordered' | 'task' | 'toggle'
/**
* @public @group Schema
*/
export interface ListAttributes {
kind?: string
order?: number | null
checked?: boolean
collapsed?: boolean
}
/**
* @public @group Schema
*/
export interface ProsemirrorNodeJSON {
type: string
marks?: Array<{ type: string; attrs?: Attrs } | string>
text?: string
content?: ProsemirrorNodeJSON[]
attrs?: Attrs
}
export type { Node as ProsemirrorNode }