-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add plugin type definitions #418
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #418 +/- ##
===================================
Coverage 100% 100%
===================================
Files 58 58
Lines 511 511
Branches 85 85
===================================
Hits 511 511 Continue to review full report at Codecov.
|
2a41045
to
648ba53
Compare
@ypresto Thanks, bro :) Anyways I've rolled back to |
|
||
declare namespace dayjs { | ||
export type ConfigType = string | number | Date | Dayjs | ||
export type DateType = string | number | Date | Dayjs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be a breaking change for those, who use TS and rely on semver. I suppose it is better to increase at least minor version, or to not change naming right now at all, but leave comments that it is deprecated and will be replaced in newer versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added type alias with @deprecated
marker!
648ba53
to
3610c73
Compare
Created plugin type defs which added after PR submit..! |
Looks good to me |
@ypresto I like this plugin type definition in module augmentation。 |
I added comment here :) #364 (comment) |
Fixed missing OptionType signature, especially for |
## [1.8.7](v1.8.6...v1.8.7) (2019-02-24) ### Bug Fixes * Add plugin type definitions ([#418](#418)) ([361d437](361d437)) * Add Swahili locale ([#508](#508)) ([b9cee84](b9cee84)) * Parse month string 'MMMM MMM (February, Feb)' in customParseFormat ([#457](#457)) ([f343206](f343206)) * Update declaration file .diff .isBefore .isSame .isAfter ([#496](#496)) ([4523275](4523275)) * Word orders corrections for locale 'fa' ([#491](#491)) ([56050c2](56050c2))
🎉 This PR is included in version 1.8.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.8.7](iamkun/dayjs@v1.8.6...v1.8.7) (2019-02-24) ### Bug Fixes * Add plugin type definitions ([#418](iamkun/dayjs#418)) ([361d437](iamkun/dayjs@361d437)) * Add Swahili locale ([#508](iamkun/dayjs#508)) ([b9cee84](iamkun/dayjs@b9cee84)) * Parse month string 'MMMM MMM (February, Feb)' in customParseFormat ([#457](iamkun/dayjs#457)) ([f343206](iamkun/dayjs@f343206)) * Update declaration file .diff .isBefore .isSame .isAfter ([#496](iamkun/dayjs#496)) ([4523275](iamkun/dayjs@4523275)) * Word orders corrections for locale 'fa' ([#491](iamkun/dayjs#491)) ([56050c2](iamkun/dayjs@56050c2))
## [1.8.7](iamkun/dayjs@v1.8.6...v1.8.7) (2019-02-24) ### Bug Fixes * Add plugin type definitions ([#418](iamkun/dayjs#418)) ([361d437](iamkun/dayjs@361d437)) * Add Swahili locale ([#508](iamkun/dayjs#508)) ([b9cee84](iamkun/dayjs@b9cee84)) * Parse month string 'MMMM MMM (February, Feb)' in customParseFormat ([#457](iamkun/dayjs#457)) ([f343206](iamkun/dayjs@f343206)) * Update declaration file .diff .isBefore .isSame .isAfter ([#496](iamkun/dayjs#496)) ([4523275](iamkun/dayjs@4523275)) * Word orders corrections for locale 'fa' ([#491](iamkun/dayjs#491)) ([56050c2](iamkun/dayjs@56050c2))
## [1.8.7](iamkun/dayjs@v1.8.6...v1.8.7) (2019-02-24) ### Bug Fixes * Add plugin type definitions ([#418](iamkun/dayjs#418)) ([361d437](iamkun/dayjs@361d437)) * Add Swahili locale ([#508](iamkun/dayjs#508)) ([b9cee84](iamkun/dayjs@b9cee84)) * Parse month string 'MMMM MMM (February, Feb)' in customParseFormat ([#457](iamkun/dayjs#457)) ([f343206](iamkun/dayjs@f343206)) * Update declaration file .diff .isBefore .isSame .isAfter ([#496](iamkun/dayjs#496)) ([4523275](iamkun/dayjs@4523275)) * Word orders corrections for locale 'fa' ([#491](iamkun/dayjs#491)) ([56050c2](iamkun/dayjs@56050c2))
types/
dir and merge into root of package on build.string | number | Date
in arguments@types/***
in itsdependencies
, causestsc
compile error without workaround...Fixes #297