Urara-Blog/node_modules/.pnpm-store/v3/files/c2/d2917c2a010a020ee1f65a3326bf2109fee9a244dc6082ba05780887b633d6793afb4f4516b49d9b461b7dee01215ab7108f3ba738892009b9962b1eb8f9a3
2022-08-14 01:14:53 +08:00

21 lines
650 B
Text
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('../types.js').TrackFields} TrackFields
*/
/**
* Functions to track output positions.
* This info isnt used yet but suchs functionality allows line wrapping,
* and theoretically source maps (though, is there practical use in that?).
*
* @param {TrackFields} options_
*/
export function track(options_: TrackFields): {
move: (value?: string) => string;
current: () => {
now: Point;
lineShift: number;
};
shift: (value: number) => void;
};
export type Point = import('unist').Point;
export type TrackFields = import('../types.js').TrackFields;