RichNodeProvider
interface exported by @mwillbanks/tuil-editor.
interface
Public interface exported by @mwillbanks/tuil-editor.
export interface RichNodeProvider {
readonly type: string;
validate?(node: RichNode): void;
text?(node: RichNode, children: string): string;
markdown?(node: RichNode, children: string): string;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
type | string | Yes | The type member uses the string contract. | — |
validate | ((node: RichNode) => void) | undefined | No | The validate member uses the ((node: RichNode) => void) | undefined contract. | RichNode |
text | ((node: RichNode, children: string) => string) | undefined | No | The text member uses the ((node: RichNode, children: string) => string) | undefined contract. | RichNode |
markdown | ((node: RichNode, children: string) => string) | undefined | No | The markdown member uses the ((node: RichNode, children: string) => string) | undefined contract. | RichNode |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference