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
[types/factory_girl] Make factory
can be used named import / Add override definitions for seq
and sequence
#50420
[types/factory_girl] Make factory
can be used named import / Add override definitions for seq
and sequence
#50420
Conversation
@ishikawa Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. 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": 50420,
"author": "ishikawa",
"headCommitOid": "e8881a982e991fabc88a8299f8d1026b4908db21",
"lastPushDate": "2021-01-09T01:08:10.000Z",
"lastActivityDate": "2021-01-09T01:15:38.000Z",
"maintainerBlessed": false,
"mergeOfferDate": "2021-01-09T01:12:56.000Z",
"mergeRequestDate": "2021-01-09T01:15:38.000Z",
"mergeRequestUser": "ishikawa",
"hasMergeConflict": false,
"isFirstContribution": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "factory-girl",
"kind": "edit",
"files": [
{
"path": "types/factory-girl/factory-girl-tests.ts",
"kind": "test"
},
{
"path": "types/factory-girl/index.d.ts",
"kind": "definition"
}
],
"owners": [
"stackbuilders",
"sestrella",
"elcuy",
"OlivierKamers"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "andrewbranch",
"date": "2021-01-09T01:10:13.000Z",
"isMaintainer": true
}
],
"ciResult": "pass"
} |
🔔 @stackbuilders @sestrella @elcuy @OlivierKamers — please review this PR in the next few days. Be sure to explicitly select |
types/factory-girl/tslint.json
Outdated
{ | ||
"extends": "dtslint/dt.json", | ||
"rules": { | ||
"no-duplicate-imports": false |
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.
I need this suppression for testing import *
and import {...}
in the same file.
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.
Makes sense, but can you use a comment to disable it only where needed?
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.
@andrewbranch Thanks for your comment. I fixed it in e8881a9.
👋 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. |
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. factory-girl (unpkg)was missing the following properties:
as well as these 1 other properties...ReduxORMAdapter |
@ishikawa Everything looks good here. Great job! I am ready to merge this PR (at e8881a9) on your behalf. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@stackbuilders, @sestrella, @elcuy, @OlivierKamers: you can do this too.) |
Ready to merge |
I just published |
…can be used named import / Add override definitions for `seq` and `sequence` by @ishikawa * The `factory` variable can be imported as named import. https://github.com/simonexmachina/factory-girl/blob/2b71a77af25a5dab18e6849a389955e6d4a2ce72/src/index.js#L13 * Add override definitions for `seq` and `sequence`. https://github.com/simonexmachina/factory-girl/blob/2b71a77af25a5dab18e6849a389955e6d4a2ce72/src/generators/ * Remove template literal from test * Disable TSLint no-duplicate-imports rule
Please fill in this template.
npm test <package to test>
.Select one of these and delete the others:
If changing an existing definition:
seq/sequence
https://github.com/simonexmachina/factory-girl/blob/2b71a77af25a5dab18e6849a389955e6d4a2ce72/src/generators/