$node.d.ts 552 B

1234567891011
  1. import type { Ctx, MilkdownPlugin } from '@milkdown/ctx';
  2. import type { NodeType } from '@milkdown/prose/model';
  3. import type { NodeSchema } from '@milkdown/transformer';
  4. export type $Node = MilkdownPlugin & {
  5. id: string;
  6. schema: NodeSchema;
  7. type: (ctx: Ctx) => NodeType;
  8. };
  9. export declare function $node(id: string, schema: (ctx: Ctx) => NodeSchema): $Node;
  10. export declare function $nodeAsync(id: string, schema: (ctx: Ctx) => Promise<NodeSchema>, timerName?: string): import("./utils").WithTimer<$Node>;
  11. //# sourceMappingURL=$node.d.ts.map