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

FormatRelativeToken

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

The token used in format relative function. Represents the time unit.

type FormatRelativeToken =
| "lastWeek"
| "yesterday"
| "today"
| "tomorrow"
| "nextWeek"
| "other";

§Type

§
"lastWeek" | "yesterday" | "today" | "tomorrow" | "nextWeek" | "other"
[src]