@paperbits/common
Version:
Paperbits common components.
19 lines (17 loc) • 405 B
text/typescript
import { Contract } from "../..";
import { InlineContract } from "./inlineContract";
/**
* Block element, e.g. paragraph, heading, etc.
*/
export interface BlockContract extends Contract {
/**
* Data associated with an instance of the block element.
*/
attrs?: {
[key: string]: any;
};
/**
* Child nodes.
*/
nodes?: InlineContract[];
}