registration
This commit is contained in:
13
frontend/style/node_modules/date-fns/isThisYear.d.ts
generated
vendored
13
frontend/style/node_modules/date-fns/isThisYear.d.ts
generated
vendored
@@ -1,3 +1,8 @@
|
||||
import type { ContextOptions, DateArg } from "./types.js";
|
||||
/**
|
||||
* The {@link isThisYear} function options.
|
||||
*/
|
||||
export interface IsThisYearOptions extends ContextOptions<Date> {}
|
||||
/**
|
||||
* @name isThisYear
|
||||
* @category Year Helpers
|
||||
@@ -7,9 +12,8 @@
|
||||
* @description
|
||||
* Is the given date in the same year as the current 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 check
|
||||
* @param options - An object with options
|
||||
*
|
||||
* @returns The date is in this year
|
||||
*
|
||||
@@ -18,6 +22,7 @@
|
||||
* const result = isThisYear(new Date(2014, 6, 2))
|
||||
* //=> true
|
||||
*/
|
||||
export declare function isThisYear<DateType extends Date>(
|
||||
date: DateType | number | string,
|
||||
export declare function isThisYear(
|
||||
date: DateArg<Date> & {},
|
||||
options?: IsThisYearOptions | undefined,
|
||||
): boolean;
|
||||
|
||||
Reference in New Issue
Block a user