diff options
Diffstat (limited to 'node_modules/date-fns/esm/isThisISOWeek')
4 files changed, 0 insertions, 89 deletions
diff --git a/node_modules/date-fns/esm/isThisISOWeek/index.d.ts b/node_modules/date-fns/esm/isThisISOWeek/index.d.ts deleted file mode 100644 index 4fb42e8..0000000 --- a/node_modules/date-fns/esm/isThisISOWeek/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. - -import { isThisISOWeek } from 'date-fns' -export default isThisISOWeek diff --git a/node_modules/date-fns/esm/isThisISOWeek/index.js b/node_modules/date-fns/esm/isThisISOWeek/index.js deleted file mode 100644 index 97bb427..0000000 --- a/node_modules/date-fns/esm/isThisISOWeek/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import isSameISOWeek from "../isSameISOWeek/index.js"; -import requiredArgs from "../_lib/requiredArgs/index.js"; -/** - * @name isThisISOWeek - * @category ISO Week Helpers - * @summary Is the given date in the same ISO week as the current date? - * @pure false - * - * @description - * Is the given date in the same ISO week as the current date? - * - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date - * - * > ⚠️ Please note that this function is not present in the FP submodule as - * > it uses `Date.now()` internally hence impure and can't be safely curried. - * - * @param {Date|Number} date - the date to check - * @returns {Boolean} the date is in this ISO week - * @throws {TypeError} 1 argument required - * - * @example - * // If today is 25 September 2014, is 22 September 2014 in this ISO week? - * const result = isThisISOWeek(new Date(2014, 8, 22)) - * //=> true - */ -export default function isThisISOWeek(dirtyDate) { - requiredArgs(1, arguments); - return isSameISOWeek(dirtyDate, Date.now()); -}
\ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisISOWeek/index.js.flow b/node_modules/date-fns/esm/isThisISOWeek/index.js.flow deleted file mode 100644 index d3f01ee..0000000 --- a/node_modules/date-fns/esm/isThisISOWeek/index.js.flow +++ /dev/null @@ -1,52 +0,0 @@ -// @flow -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. - -export type Interval = { - start: Date | number, - end: Date | number, -} - -export type Locale = { - code?: string, - formatDistance?: (...args: Array<any>) => any, - formatRelative?: (...args: Array<any>) => any, - localize?: { - ordinalNumber: (...args: Array<any>) => any, - era: (...args: Array<any>) => any, - quarter: (...args: Array<any>) => any, - month: (...args: Array<any>) => any, - day: (...args: Array<any>) => any, - dayPeriod: (...args: Array<any>) => any, - }, - formatLong?: { - date: (...args: Array<any>) => any, - time: (...args: Array<any>) => any, - dateTime: (...args: Array<any>) => any, - }, - match?: { - ordinalNumber: (...args: Array<any>) => any, - era: (...args: Array<any>) => any, - quarter: (...args: Array<any>) => any, - month: (...args: Array<any>) => any, - day: (...args: Array<any>) => any, - dayPeriod: (...args: Array<any>) => any, - }, - options?: { - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, - }, -} - -export type Duration = { - years?: number, - months?: number, - weeks?: number, - days?: number, - hours?: number, - minutes?: number, - seconds?: number, -} - -export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 - -declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisISOWeek/package.json b/node_modules/date-fns/esm/isThisISOWeek/package.json deleted file mode 100644 index b109f05..0000000 --- a/node_modules/date-fns/esm/isThisISOWeek/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "sideEffects": false, - "typings": "../../typings.d.ts" -}
\ No newline at end of file |
