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

NearestToUnitOptions

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

The nearest unit function options. Used to build function options.

interface NearestToUnitOptions <Unit extends number> {
nearestTo?: Unit;
}

§Type Parameters

§
Unit extends number
[src]

§Properties

§
nearestTo?: Unit
[src]

The nearest unit to round to. E.g. for minutes 15 to round to quarter hours.