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

FormatDistanceFnOptions

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

The FormatDistanceFn function options.

interface FormatDistanceFnOptions {
addSuffix?: boolean;
comparison?: -1 | 0 | 1;
}

§Properties

§
addSuffix?: boolean
[src]

Add "X ago"/"in X" in the locale language

§
comparison?: -1 | 0 | 1
[src]

The distance vector. -1 represents past and 1 future. Tells which suffix to use.