12 lines
423 B
TypeScript
12 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
|