UNPKG

456 BTypeScriptView Raw
1import { NodeSpec } from 'prosemirror-model';
2export interface UrlType {
3 /**
4 * @validatorFn safeUrl
5 */
6 url: string;
7}
8export interface DataType {
9 /**
10 * @additionalProperties true
11 */
12 data: object;
13}
14export declare type CardAttributes = UrlType | DataType;
15/**
16 * @name blockCard_node
17 */
18export interface BlockCardDefinition {
19 type: 'blockCard';
20 attrs: CardAttributes;
21}
22export declare const blockCard: NodeSpec;