$mark.d.ts 552 B

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