dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

fix: daysJS.extend returns typeof dayJS, not an instance

Open JacobLey opened this issue 3 years ago • 1 comments

Title pretty much says it all. Refer to source code: https://github.com/iamkun/dayjs/blob/dev/src/index.js#L390

Proper typing enables extend chaining in typescript

e.g. dayjs.extend(foo).extend(bar)

Should result in a "patch" update. Technically type change would be a major, but considering the current is incorrect, it is unreasonable to assume anyone is using it as-typed and would therefore have a broken process.

JacobLey avatar Sep 21 '21 13:09 JacobLey