Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FormatDistanceToken

import type { FormatDistanceToken } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";

The token used in the format distance function. Represents the distance unit with prespecified precision.

type FormatDistanceToken =
| "lessThanXSeconds"
| "xSeconds"
| "halfAMinute"
| "lessThanXMinutes"
| "xMinutes"
| "aboutXHours"
| "xHours"
| "xDays"
| "aboutXWeeks"
| "xWeeks"
| "aboutXMonths"
| "xMonths"
| "aboutXYears"
| "xYears"
| "overXYears"
| "almostXYears";

§Type

§
"lessThanXSeconds" | "xSeconds" | "halfAMinute" | "lessThanXMinutes" | "xMinutes" | "aboutXHours" | "xHours" | "xDays" | "aboutXWeeks" | "xWeeks" | "aboutXMonths" | "xMonths" | "aboutXYears" | "xYears" | "overXYears" | "almostXYears"
[src]