From de01e49c288e4a9664a02c2c0975300a5eb0cfef Mon Sep 17 00:00:00 2001 From: Jasper Miles Date: Thu, 21 Apr 2022 14:26:07 +1000 Subject: [PATCH] fix: add OpUnitType to quarterOfYear startOf/endOf types --- types/plugin/quarterOfYear.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/plugin/quarterOfYear.d.ts b/types/plugin/quarterOfYear.d.ts index 19a9bd423..8a9cc1e3d 100644 --- a/types/plugin/quarterOfYear.d.ts +++ b/types/plugin/quarterOfYear.d.ts @@ -1,4 +1,4 @@ -import { PluginFunc, ConfigType, QUnitType } from 'dayjs' +import { PluginFunc, ConfigType, QUnitType, OpUnitType } from 'dayjs' declare const plugin: PluginFunc export = plugin @@ -13,9 +13,9 @@ declare module 'dayjs' { subtract(value: number, unit: QUnitType): Dayjs - startOf(unit: QUnitType): Dayjs + startOf(unit: QUnitType | OpUnitType): Dayjs - endOf(unit: QUnitType): Dayjs + endOf(unit: QUnitType | OpUnitType): Dayjs isSame(date: ConfigType, unit?: QUnitType): boolean