json-joy
Version:
Collection of libraries for building collaborative editing apps.
21 lines (20 loc) • 310 B
TypeScript
/**
* Slate.js nodes
*
* @ignore
*/
export interface SlateTextNode {
text: string;
[key: string]: unknown;
}
/**
* @ignore
*/
export interface SlateElementNode {
children: SlateNode[];
[key: string]: unknown;
}
/**
* @ignore
*/
export type SlateNode = SlateElementNode | SlateTextNode;