-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
[graphql-resolvers] Fix argument types #44919
Conversation
@zaguiini Thank you for submitting this PR! This PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Have you considered adding tests to cover the change you're making? Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you. Code ReviewsThis PR can be merged once it's reviewed by a DT maintainer. 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": 44919,
"author": "zaguiini",
"owners": [
"mike-engel",
"aecorredor"
],
"dangerLevel": "ScopedAndUntested",
"headCommitAbbrOid": "066925e",
"headCommitOid": "066925ef973168bae5e11553579d206522e80479",
"mergeIsRequested": false,
"stalenessInDays": 1,
"lastCommitDate": "2020-05-20T13:24:49.000Z",
"lastCommentDate": "2020-05-20T13:19:58.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44919/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Well-liked by everyone",
"anyPackageIsNew": false,
"packages": [
"graphql-resolvers"
],
"files": [
{
"filePath": "types/graphql-resolvers/index.d.ts",
"kind": "definition",
"package": "graphql-resolvers"
}
],
"hasDismissedReview": false,
"travisResult": "pass",
"lastReviewDate": "2020-05-21T18:19:49.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
🔔 @mike-engel @aecorredor - please review this PR in the next few days. Be sure to explicitly select |
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. graphql-resolvers (unpkg)was missing the following properties:
|
👋 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? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
Updated numbers for you here from 26681b4. Comparison details 📊
It looks like there are several metrics that changed quite a bit. You might want to take a look and make sure your changes won’t cause slow-downs for users consuming these types. |
I just published |
Fixes lucasconstantino/graphql-resolvers#19.
Use a meaningful title for the pull request. Include the name of the package modified.
Test the change in your own code. (Compile and run.)
Add or edit tests to reflect the change. (Run with
npm test
.)Follow the advice from the readme.
Avoid common mistakes.
Run
npm run lint package-name
(ortsc
if notslint.json
is present).Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/prisma-labs/graphql-middleware/pull/29/files
(n/a) If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
Include tests for your changes
(n/a) If you are making substantial changes, consider adding a
tslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any 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.