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

FormatDistanceLocale

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

The tokens map to string templates used in the format distance function. It looks like this:

const formatDistanceLocale: FormatDistanceLocale = { lessThanXSeconds: 'តិចជាង {{count}} វិនាទី', xSeconds: '{{count}} វិនាទី', // ... }

type FormatDistanceLocale<Template> = [Token in FormatDistanceToken]: Template;

§Type Parameters

§
Template
[src]

§Type

§
[Token in FormatDistanceToken]: Template
[src]