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

FormatDistanceTokenFn

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

The function used inside the FormatDistanceFn function, implementing formatting for a particular token.

type FormatDistanceTokenFn = (count: number, options?: FormatDistanceFnOptions) => string;

§Type

§
(count: number, options?: FormatDistanceFnOptions) => string
[src]