FormatDistanceFn
import type { FormatDistanceFn } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
The function that takes a token (i.e. halfAMinute) passed by formatDistance
or formatDistanceStrict
and payload, and returns localized distance.
type FormatDistanceFn = (
token: FormatDistanceToken,
count: number,
options?: FormatDistanceFnOptions,
) => string;§Type
§
(token: FormatDistanceToken, count: number, options?: FormatDistanceFnOptions) => string
[src]