Files
zhibo/node_modules/unist-util-stringify-position/index.d.ts
T
xiaoyu ac8f91d4d3 init
2023-05-22 14:23:20 +08:00

36 lines
957 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* @typedef {import('unist').Point} Point
* @typedef {import('unist').Node} Node
* @typedef {import('unist').Position} Position
* @typedef {object & {type: string, position?: Position|undefined}} NodeLike
*/
/**
* Stringify one point, a position (start and end points), or a nodes
* positional information.
*
* @param {Node|NodeLike|Position|Point|null} [value]
* @returns {string}
*/
export function stringifyPosition(
value?:
| import('unist').Point
| import('unist').Node<import('unist').Data>
| import('unist').Position
| NodeLike
| null
| undefined
): string
export type Point = import('unist').Point
export type Node = import('unist').Node
export type Position = import('unist').Position
export type NodeLike = object & {
type: string
position?: Position | undefined
}
/**
* @param {Position|undefined} pos
* @returns {string}
*/
declare function position(pos: Position | undefined): string
export {}