registration
This commit is contained in:
38
frontend/style/node_modules/date-fns/eachMinuteOfInterval.d.ts
generated
vendored
38
frontend/style/node_modules/date-fns/eachMinuteOfInterval.d.ts
generated
vendored
@@ -1,8 +1,28 @@
|
||||
import type { Interval, StepOptions } from "./types.js";
|
||||
import type { ContextOptions, Interval, StepOptions } from "./types.js";
|
||||
/**
|
||||
* The {@link eachMinuteOfInterval} function options.
|
||||
*/
|
||||
export interface EachMinuteOfIntervalOptions extends StepOptions {}
|
||||
export interface EachMinuteOfIntervalOptions<DateType extends Date = Date>
|
||||
extends StepOptions,
|
||||
ContextOptions<DateType> {}
|
||||
/**
|
||||
* The {@link eachMinuteOfInterval} function result type. It resolves the proper data type.
|
||||
* It uses the first argument date object type, starting from the date argument,
|
||||
* then the start interval date, and finally the end interval date. If
|
||||
* a context function is passed, it uses the context function return type.
|
||||
*/
|
||||
export type EachMinuteOfIntervalResult<
|
||||
IntervalType extends Interval,
|
||||
Options extends EachMinuteOfIntervalOptions | undefined,
|
||||
> = Array<
|
||||
Options extends EachMinuteOfIntervalOptions<infer DateType>
|
||||
? DateType
|
||||
: IntervalType["start"] extends Date
|
||||
? IntervalType["start"]
|
||||
: IntervalType["end"] extends Date
|
||||
? IntervalType["end"]
|
||||
: Date
|
||||
>;
|
||||
/**
|
||||
* @name eachMinuteOfInterval
|
||||
* @category Interval Helpers
|
||||
@@ -11,7 +31,8 @@ export interface EachMinuteOfIntervalOptions extends StepOptions {}
|
||||
* @description
|
||||
* Returns the array of minutes within the specified time interval.
|
||||
*
|
||||
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
||||
* @typeParam IntervalType - Interval type.
|
||||
* @typeParam Options - Options type.
|
||||
*
|
||||
* @param interval - The interval.
|
||||
* @param options - An object with options.
|
||||
@@ -31,7 +52,10 @@ export interface EachMinuteOfIntervalOptions extends StepOptions {}
|
||||
* // Wed Oct 14 2014 13:03:00
|
||||
* // ]
|
||||
*/
|
||||
export declare function eachMinuteOfInterval<DateType extends Date>(
|
||||
interval: Interval<DateType>,
|
||||
options?: EachMinuteOfIntervalOptions,
|
||||
): DateType[];
|
||||
export declare function eachMinuteOfInterval<
|
||||
IntervalType extends Interval,
|
||||
Options extends EachMinuteOfIntervalOptions | undefined = undefined,
|
||||
>(
|
||||
interval: IntervalType,
|
||||
options?: Options,
|
||||
): EachMinuteOfIntervalResult<IntervalType, Options>;
|
||||
|
||||
Reference in New Issue
Block a user