registration

This commit is contained in:
User
2025-02-02 16:08:03 +03:00
parent 7f6495eb4d
commit 78afbaed71
6334 changed files with 196774 additions and 165754 deletions

View File

@@ -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;