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 type definitions for Keychain NPM module #64842
Conversation
@khaosdoctor Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 64842,
"author": "khaosdoctor",
"headCommitOid": "9c0fc4b5e599e3e0fdc7bac1dca4a792ebb6d709",
"mergeBaseOid": "c8d68f04d24f4354b2e7d018966483333958c528",
"lastPushDate": "2023-03-23T14:07:13.000Z",
"lastActivityDate": "2023-03-23T20:30:36.000Z",
"mergeOfferDate": "2023-03-23T20:06:10.000Z",
"mergeRequestDate": "2023-03-23T20:30:36.000Z",
"mergeRequestUser": "khaosdoctor",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "keychain",
"kind": "add",
"files": [
{
"path": "types/keychain/index.d.ts",
"kind": "definition"
},
{
"path": "types/keychain/keychain-tests.ts",
"kind": "test"
},
{
"path": "types/keychain/tsconfig.json",
"kind": "package-meta-ok"
},
{
"path": "types/keychain/tslint.json",
"kind": "package-meta-ok"
}
],
"owners": [],
"addedOwners": [
"khaosdoctor"
],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "peterblazejewicz",
"date": "2023-03-23T20:05:23.000Z",
"isMaintainer": true
},
{
"type": "stale",
"reviewer": "sandersn",
"date": "2023-03-21T23:41:14.000Z",
"abbrOid": "92862ae"
}
],
"mainBotCommentID": 1478506775,
"ciResult": "pass"
} |
|
@khaosdoctor The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
Signed-off-by: Lucas Santos <lucas.santos@klarna.com>
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. keychain (unpkg)was missing the following properties:
|
This is because the module is exported as a default export, I've tested this in a real CLI to make sure the types were ok |
@khaosdoctor One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
Signed-off-by: Lucas Santos <lucas.santos@klarna.com>
@khaosdoctor The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
Forgot to run the tests |
Signed-off-by: Lucas Santos <lucas.santos@klarna.com>
@sandersn Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
@peterblazejewicz, @sandersn Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
@khaosdoctor: Everything looks good here. I am ready to merge this PR (at 9c0fc4b) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! |
Ready to merge |
Please fill in this template.
npm test <package to test>
.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 contain{ "extends": "@definitelytyped/dtslint/dt.json" }
, and no additional rules.tsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.