You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Typescript complains that "quarter" and "isoWeek" are not assignable to parameter of type DurationUnitType when using the isoWeek and quarterOfYear in combination with duration:
importdayjsfrom'dayjs'importisoWeekfrom'dayjs/plugin/isoWeek'importdurationfrom'dayjs/plugin/duration'importquarterOfYearfrom'dayjs/plugin/quarterOfYear'dayjs.extend(duration)dayjs.extend(quarterOfYear)dayjs.extend(isoWeek)dayjs.duration(1,'quarter')// Argument of type '"quarter"' is not assignable to parameter of type 'DurationUnitType | undefined' ts 2345dayjs.duration(1,'isoWeek')// Argument of type '"isoWeek"' is not assignable to parameter of type 'DurationUnitType | undefined' ts 2345
Expected behavior
Plugin isoWeek and quarterOfYear to extend the expected input types of dayjs.duration()
Describe the bug
Typescript complains that
"quarter"
and"isoWeek"
are not assignable to parameter of typeDurationUnitType
when using theisoWeek
andquarterOfYear
in combination withduration
:Expected behavior
Plugin
isoWeek
andquarterOfYear
to extend the expected input types ofdayjs.duration()
Information
Possibly related to #1354, @zardoy?
The text was updated successfully, but these errors were encountered: