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

FormatRelativeTokenFn

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

The locale function used inside the FormatRelativeFn function implementing formatting for a particular token.

type FormatRelativeTokenFn = <DateType extends Date>(
date: DateType | number | string,
baseDate: DateType | number | string,
) => string
;

§Type

§
<DateType extends Date>(date: DateType | number | string, baseDate: DateType | number | string, options?: FormatRelativeTokenFnOptions) => string
[src]