/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
types/plugin/isoWeek.d.ts
27 строк
609 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, OpUnitType, ConfigType } from 'dayjs' declare const plugin: PluginFunc export = plugin type ISOUnitType = OpUnitType | 'isoWeek'; declare module 'dayjs' { interface Dayjs { isoWeekYear(): number isoWeek(): number isoWeek(value: number): Dayjs isoWeekday(): number isoWeekday(value: number): Dayjs startOf(unit: ISOUnitType): Dayjs endOf(unit: ISOUnitType): Dayjs isSame(date?: ConfigType, unit?: ISOUnitType): boolean isBefore(date?: ConfigType, unit?: ISOUnitType): boolean isAfter(date?: ConfigType, unit?: ISOUnitType): boolean } }