R
T

DOMOutputSpec

A serializable description of DOM output (ProseMirror-style), kept free of real DOM so the schema layer stays pure. The view realizes it into elements. - `'text'` → a text node, - `['tag', { attr: 'v' }, 0]` → `<tag attr="v">…content…</tag>`, - the attrs object is optional; `0` is the content hole. The array part is an interface so the recursion (an element may contain nested elements) is well-founded for the type checker.

Signature

ts
export type DOMOutputSpec = string | DOMOutputArray;