-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
[@chenfengyuan/datepicker] Add types for options #48526
Conversation
931f743
to
d7877a9
Compare
@aried3r Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 48526,
"author": "aried3r",
"owners": [],
"dangerLevel": "ScopedAndConfiguration",
"headCommitAbbrOid": "d7877a9",
"headCommitOid": "d7877a94830f885a9f34512e9a729c91eca97615",
"mergeIsRequested": false,
"stalenessInDays": 6,
"lastPushDate": "2020-10-05T21:58:56.000Z",
"lastCommentDate": "2020-10-05T22:01:15.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48526/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Well-liked by everyone",
"newPackages": [
"chenfengyuan__datepicker"
],
"packages": [
"chenfengyuan__datepicker"
],
"files": [
{
"path": "types/chenfengyuan__datepicker/chenfengyuan__datepicker-tests.ts",
"kind": "test",
"package": "chenfengyuan__datepicker"
},
{
"path": "types/chenfengyuan__datepicker/index.d.ts",
"kind": "definition",
"package": "chenfengyuan__datepicker"
},
{
"path": "types/chenfengyuan__datepicker/tsconfig.json",
"kind": "package-meta",
"package": "chenfengyuan__datepicker",
"suspect": "created"
},
{
"path": "types/chenfengyuan__datepicker/tslint.json",
"kind": "package-meta-ok",
"package": "chenfengyuan__datepicker"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"reviewersWithStaleReviews": [],
"approvalFlags": 0,
"isChangesRequested": false
} |
🔔 @aried3r — you're the only owner, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...) |
@fengyuanchen, would you be up for reviewing this? Fully optional of course. |
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to chenfengyuan__datepicker with its source on master. Comparison details 📊
|
Nice work, great tests and well documented 10/10 👍🏻 |
I just published |
Please fill in this template.
npm test YOUR_PACKAGE_NAME
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If adding a new definition:
.d.ts
files generated via--declaration
dts-gen --dt
, not by basing it on an existing project.tslint.json
should be present and it shouldn't have any additional or disabling of rules. Just content as{ "extends": "dtslint/dt.json" }
. If for reason the some rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.tsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.Only adds types for options.
https://github.com/fengyuanchen/datepicker#options
https://github.com/fengyuanchen/datepicker/blob/b233093ba7922a3a2d9d1c4aad6457a50cc7b080/docs/js/main.js#L8-L16
https://github.com/fengyuanchen/datepicker/blob/b233093ba7922a3a2d9d1c4aad6457a50cc7b080/test/events/pick.js#L17-L20