devstar插件
This commit is contained in:
17
node_modules/hast-util-to-html/lib/omission/omission.d.ts
generated
vendored
Normal file
17
node_modules/hast-util-to-html/lib/omission/omission.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Check if a tag can be omitted.
|
||||
*/
|
||||
export type OmitHandle = (element: Element, index: number | undefined, parent: Parents | undefined) => boolean;
|
||||
import type { Element } from 'hast';
|
||||
import type { Parents } from 'hast';
|
||||
//# sourceMappingURL=omission.d.ts.map
|
Reference in New Issue
Block a user