v1.0 with SW PWA enabled
This commit is contained in:
24
frontend/node_modules/date-fns/setMonth.d.mts
generated
vendored
Normal file
24
frontend/node_modules/date-fns/setMonth.d.mts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @name setMonth
|
||||
* @category Month Helpers
|
||||
* @summary Set the month to the given date.
|
||||
*
|
||||
* @description
|
||||
* Set the month to the given 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 date to be changed
|
||||
* @param month - The month index to set (0-11)
|
||||
*
|
||||
* @returns The new date with the month set
|
||||
*
|
||||
* @example
|
||||
* // Set February to 1 September 2014:
|
||||
* const result = setMonth(new Date(2014, 8, 1), 1)
|
||||
* //=> Sat Feb 01 2014 00:00:00
|
||||
*/
|
||||
export declare function setMonth<DateType extends Date>(
|
||||
date: DateType | number | string,
|
||||
month: number,
|
||||
): DateType;
|
||||
Reference in New Issue
Block a user