hast-util-heading-rank
Advanced tools
Comparing version 2.0.0 to 2.1.0
/** | ||
* @typedef {import('hast').Element} HastElement | ||
* @typedef {import('hast').Parent} Parent | ||
* @typedef {import('hast').Root} Root | ||
* @typedef {Root|Parent['children'][number]} Node | ||
*/ | ||
@@ -7,6 +9,8 @@ /** | ||
* | ||
* @param {HastElement} node | ||
* @param {Node} node | ||
* @returns {number|null} | ||
*/ | ||
export function headingRank(node: HastElement): number | null | ||
export type HastElement = import('hast').Element | ||
export function headingRank(node: Node): number | null | ||
export type Parent = import('hast').Parent | ||
export type Root = import('hast').Root | ||
export type Node = Root | Parent['children'][number] |
/** | ||
* @typedef {import('hast').Element} HastElement | ||
* @typedef {import('hast').Parent} Parent | ||
* @typedef {import('hast').Root} Root | ||
* @typedef {Root|Parent['children'][number]} Node | ||
*/ | ||
@@ -8,3 +10,3 @@ | ||
* | ||
* @param {HastElement} node | ||
* @param {Node} node | ||
* @returns {number|null} | ||
@@ -11,0 +13,0 @@ */ |
{ | ||
"name": "hast-util-heading-rank", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "hast utility to get the rank (or depth, level) of headings", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7468
35