diff --git a/types/plugin/quarterOfYear.d.ts b/types/plugin/quarterOfYear.d.ts index f77f032c0..19a9bd423 100644 --- a/types/plugin/quarterOfYear.d.ts +++ b/types/plugin/quarterOfYear.d.ts @@ -1,4 +1,4 @@ -import { PluginFunc, QUnitType } from 'dayjs' +import { PluginFunc, ConfigType, QUnitType } from 'dayjs' declare const plugin: PluginFunc export = plugin @@ -6,7 +6,7 @@ export = plugin declare module 'dayjs' { interface Dayjs { quarter(): number - + quarter(quarter: number): Dayjs add(value: number, unit: QUnitType): Dayjs @@ -16,5 +16,11 @@ declare module 'dayjs' { startOf(unit: QUnitType): Dayjs endOf(unit: QUnitType): Dayjs + + isSame(date: ConfigType, unit?: QUnitType): boolean + + isBefore(date: ConfigType, unit?: QUnitType): boolean + + isAfter(date: ConfigType, unit?: QUnitType): boolean } }