/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
types/plugin/quarterOfYear.d.ts
26 строк
607 B
양현석
fix: type file first parameter date is optional in isSame(), isBefore(), isAfter() (#2272)
16 апр 2023, 16:53
Не верифицирован
16 апр 2023, 16:53
4d56f3e
Код
Авторство
О чём код?
import { PluginFunc, ConfigType, QUnitType, OpUnitType } from 'dayjs' declare const plugin: PluginFunc export = plugin declare module 'dayjs' { interface Dayjs { quarter(): number quarter(quarter: number): Dayjs add(value: number, unit: QUnitType): Dayjs subtract(value: number, unit: QUnitType): Dayjs startOf(unit: QUnitType | OpUnitType): Dayjs endOf(unit: QUnitType | OpUnitType): Dayjs isSame(date?: ConfigType, unit?: QUnitType): boolean isBefore(date?: ConfigType, unit?: QUnitType): boolean isAfter(date?: ConfigType, unit?: QUnitType): boolean } }