TypeScript errors occur when using `isSameOrBefore` and `isSameOrAfter`
Author: patienryCreated Aug 28, 2026Updated Aug 28, 2026
Describe the bug
When using isSameOrAfter or isSameOrBefore to compare quarter dates, a ts error occurs, as shown in the screenshot below.
Expected behavior No TypeScript errors should occur.
Information
- Day.js Version [v1.11.20]
- OS: [Windows 11]
- Browser [Chrome 151.0.7922.138]
- Time zone: [UTC+08:00 (China Standard Time)]
Source: iamkun/dayjs