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,8 +1,10 @@
import type { ISOFormatOptions } from "./types.js";
import type { ContextOptions, DateArg, ISOFormatOptions } from "./types.js";
/**
* The {@link formatISO9075} function options.
*/
export interface FormatISO9075Options extends ISOFormatOptions {}
export interface FormatISO9075Options
extends ISOFormatOptions,
ContextOptions<Date> {}
/**
* @name formatISO9075
* @category Common Helpers
@@ -11,8 +13,6 @@ export interface FormatISO9075Options extends ISOFormatOptions {}
* @description
* Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.
*
* @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).
*
* @param date - The original date
* @param options - An object with options.
*
@@ -40,7 +40,7 @@ export interface FormatISO9075Options extends ISOFormatOptions {}
* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })
* //=> '19:00:52'
*/
export declare function formatISO9075<DateType extends Date>(
date: DateType | number | string,
export declare function formatISO9075(
date: DateArg<Date> & {},
options?: FormatISO9075Options,
): string;