kjelsrud.dev/node_modules/hast-util-to-html/lib/omission/omission.d.ts
2023-07-19 21:31:30 +02:00

11 lines
423 B
TypeScript

/**
* Factory to check if a given node can have a tag omitted.
*
* @param {Record<string, OmitHandle>} handlers
* Omission handlers, where each key is a tag name, and each value is the
* corresponding handler.
* @returns {OmitHandle}
* Whether to omit a tag of an element.
*/
export function omission(handlers: Record<string, OmitHandle>): OmitHandle
export type OmitHandle = import('../types.js').OmitHandle