registration
This commit is contained in:
7
frontend/style/node_modules/date-fns/lightFormat.d.ts
generated
vendored
7
frontend/style/node_modules/date-fns/lightFormat.d.ts
generated
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user