index.d.ts 955 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @typedef {import('micromark-util-types').Event} Event
  3. * @typedef {import('micromark-util-types').Resolver} Resolver
  4. * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
  5. */
  6. /**
  7. * Call all `resolveAll`s.
  8. *
  9. * @param {Array<{resolveAll?: Resolver | undefined}>} constructs
  10. * List of constructs, optionally with `resolveAll`s.
  11. * @param {Array<Event>} events
  12. * List of events.
  13. * @param {TokenizeContext} context
  14. * Context used by `tokenize`.
  15. * @returns {Array<Event>}
  16. * Changed events.
  17. */
  18. export function resolveAll(
  19. constructs: Array<{
  20. resolveAll?: Resolver | undefined
  21. }>,
  22. events: Array<import('micromark-util-types').Event>,
  23. context: TokenizeContext
  24. ): Array<import('micromark-util-types').Event>
  25. export type Event = import('micromark-util-types').Event
  26. export type Resolver = import('micromark-util-types').Resolver
  27. export type TokenizeContext = import('micromark-util-types').TokenizeContext