$attr.d.ts 509 B

1234567
  1. import type { Mark, Node } from '@milkdown/prose/model';
  2. import type { $Ctx } from '../$ctx';
  3. export type $NodeAttr = $Ctx<(node: Node) => Record<string, any>, `${string}Attr`>;
  4. export declare const $nodeAttr: (name: string, value?: (node: Node) => Record<string, any>) => $NodeAttr;
  5. export type $MarkAttr = $Ctx<(node: Mark) => Record<string, any>, `${string}Attr`>;
  6. export declare const $markAttr: (name: string, value?: (mark: Mark) => Record<string, any>) => $MarkAttr;
  7. //# sourceMappingURL=$attr.d.ts.map