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

interval

import { interval } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
function interval<DateType extends Date>(
start: DateType | number | string,
end: DateType | number | string,
options?: IntervalOptions,
): NormalizedInterval<DateType>;
§
interval<DateType extends Date>(start: DateType | number | string, end: DateType | number | string, options?: IntervalOptions): NormalizedInterval<DateType>
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
start: DateType | number | string
[src]
  • The start of the interval.
§
end: DateType | number | string
[src]
  • The end of the interval.
§
options?: IntervalOptions optional
[src]
  • The options object.

§Return Type

§

The normalized and validated interval object.