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,7 +1,8 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link formatRFC3339} function options.
*/
export interface FormatRFC3339Options {
export interface FormatRFC3339Options extends ContextOptions<Date> {
/** The number of digits after the decimal point after seconds, defaults to 0 */
fractionDigits?: 0 | 1 | 2 | 3;
}
@@ -13,8 +14,6 @@ export interface FormatRFC3339Options {
* @description
* Return the formatted date string in RFC 3339 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.
*
@@ -34,7 +33,7 @@ export interface FormatRFC3339Options {
* })
* //=> '2019-09-18T19:00:52.234Z'
*/
export declare function formatRFC3339<DateType extends Date>(
date: DateType | number | string,
export declare function formatRFC3339(
date: DateArg<Date> & {},
options?: FormatRFC3339Options,
): string;