unist-util-stringify-position
Advanced tools
Comparing version 3.0.1 to 3.0.2
/** | ||
* @typedef {import('unist').Point} Point | ||
* @typedef {import('unist').Node} Node | ||
* @typedef {import('unist').Position} Position | ||
* @typedef {Record<string, unknown> & {type: string, position?: Position|undefined}} NodeLike | ||
* @typedef {object & {type: string, position?: Position|undefined}} NodeLike | ||
*/ | ||
@@ -10,3 +11,3 @@ /** | ||
* | ||
* @param {NodeLike|Position|Point|null} [value] | ||
* @param {Node|NodeLike|Position|Point|null} [value] | ||
* @returns {string} | ||
@@ -17,2 +18,3 @@ */ | ||
| import('unist').Point | ||
| import('unist').Node<import('unist').Data> | ||
| import('unist').Position | ||
@@ -24,4 +26,5 @@ | NodeLike | ||
export type Point = import('unist').Point | ||
export type Node = import('unist').Node | ||
export type Position = import('unist').Position | ||
export type NodeLike = Record<string, unknown> & { | ||
export type NodeLike = object & { | ||
type: string | ||
@@ -28,0 +31,0 @@ position?: Position | undefined |
/** | ||
* @typedef {import('unist').Point} Point | ||
* @typedef {import('unist').Node} Node | ||
* @typedef {import('unist').Position} Position | ||
* @typedef {Record<string, unknown> & {type: string, position?: Position|undefined}} NodeLike | ||
* @typedef {object & {type: string, position?: Position|undefined}} NodeLike | ||
*/ | ||
@@ -11,3 +12,3 @@ | ||
* | ||
* @param {NodeLike|Position|Point|null} [value] | ||
* @param {Node|NodeLike|Position|Point|null} [value] | ||
* @returns {string} | ||
@@ -14,0 +15,0 @@ */ |
{ | ||
"name": "unist-util-stringify-position", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "unist utility to serialize a node, position, or point as a human readable location", | ||
@@ -40,2 +40,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/mdast": "^3.0.0", | ||
"@types/tape": "^4.0.0", | ||
@@ -42,0 +43,0 @@ "c8": "^7.0.0", |
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
11186
89
11