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,5 @@
import { lightFormatters } from "./_lib/format/lightFormatters.js";
import type { DateArg } from "./types.js";
export { lightFormatters };
/**
* @name lightFormat
@@ -45,8 +46,6 @@ export { lightFormatters };
* | | SSS | 000, 001, ..., 999 |
* | | SSSS | ... |
*
* @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 format - The string of tokens
*
@@ -59,7 +58,7 @@ export { lightFormatters };
* const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd')
* //=> '2014-02-11'
*/
export declare function lightFormat<DateType extends Date>(
date: DateType | number | string,
export declare function lightFormat(
date: DateArg<Date> & {},
formatStr: string,
): string;