registration
This commit is contained in:
21
frontend/style/node_modules/date-fns/transpose.d.ts
generated
vendored
21
frontend/style/node_modules/date-fns/transpose.d.ts
generated
vendored
@@ -1,4 +1,4 @@
|
||||
import type { GenericDateConstructor } from "./types.js";
|
||||
import type { ContextFn, GenericDateConstructor } from "./types.js";
|
||||
/**
|
||||
* @name transpose
|
||||
* @category Generic Helpers
|
||||
@@ -9,10 +9,10 @@ import type { GenericDateConstructor } from "./types.js";
|
||||
* to transpose the date in the system time zone to say `UTCDate` or any other
|
||||
* date extension.
|
||||
*
|
||||
* @typeParam DateInputType - The input `Date` type derived from the passed argument.
|
||||
* @typeParam DateOutputType - The output `Date` type derived from the passed constructor.
|
||||
* @typeParam InputDate - The input `Date` type derived from the passed argument.
|
||||
* @typeParam ResultDate - The result `Date` type derived from the passed constructor.
|
||||
*
|
||||
* @param fromDate - The date to use values from
|
||||
* @param date - The date to use values from
|
||||
* @param constructor - The date constructor to use
|
||||
*
|
||||
* @returns Date transposed to the given constructor
|
||||
@@ -28,9 +28,12 @@ import type { GenericDateConstructor } from "./types.js";
|
||||
* //=> 'Sun Jul 10 2022 00:00:00 GMT+0000 (Coordinated Universal Time)'
|
||||
*/
|
||||
export declare function transpose<
|
||||
DateInputType extends Date,
|
||||
DateOutputType extends Date,
|
||||
InputDate extends Date,
|
||||
ResultDate extends Date,
|
||||
>(
|
||||
fromDate: DateInputType,
|
||||
constructor: DateOutputType | GenericDateConstructor<DateOutputType>,
|
||||
): DateOutputType;
|
||||
date: InputDate,
|
||||
constructor:
|
||||
| ResultDate
|
||||
| GenericDateConstructor<ResultDate>
|
||||
| ContextFn<ResultDate>,
|
||||
): ResultDate;
|
||||
|
||||
Reference in New Issue
Block a user