-
Notifications
You must be signed in to change notification settings - Fork 30.5k
fix(glob): correct return type to match Glob interface #45193
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
Conversation
This changes detail of lesser known usage of the module. As pointed in DefinitelyTyped#45192 the function usage should return fully initialized instance of the glob: https://git.io/Jf6WM /cc @Shinigami92 Thanks! Fixes DefinitelyTyped#45192
|
@peterblazejewicz Thank you for submitting this PR! Code ReviewsBecause this is a widely-used package, a DT maintainer will need to review it 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": 45193,
"author": "peterblazejewicz",
"owners": [
"vvakame",
"voy",
"ajafff"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "0ae328c",
"headCommitOid": "0ae328c98463cd05c1594cf36baa030ad9c7fe4c",
"mergeIsRequested": false,
"stalenessInDays": 3,
"lastCommitDate": "2020-05-31T11:22:10.000Z",
"lastCommentDate": "2020-05-31T11:25:40.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/45193/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Critical",
"anyPackageIsNew": false,
"packages": [
"glob"
],
"files": [
{
"filePath": "types/glob/glob-tests.ts",
"kind": "test",
"package": "glob"
},
{
"filePath": "types/glob/index.d.ts",
"kind": "definition",
"package": "glob"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-05-31T11:28:57.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 1,
"isChangesRequested": false
} |
|
🔔 @vvakame @voy @ajafff - please review this PR in the next few days. Be sure to explicitly select |
|
🔔 @vvakame @voy @ajafff - 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. glob (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. |
|
I just published |
…d#45193) This changes detail of lesser known usage of the module. As pointed in DefinitelyTyped#45192 the function usage should return fully initialized instance of the glob: https://git.io/Jf6WM /cc @Shinigami92 Thanks! Fixes DefinitelyTyped#45192
…d#45193) This changes detail of lesser known usage of the module. As pointed in DefinitelyTyped#45192 the function usage should return fully initialized instance of the glob: https://git.io/Jf6WM /cc @Shinigami92 Thanks! Fixes DefinitelyTyped#45192
This changes detail of lesser known usage of the module.
As pointed in #45192 the function usage should return fully initialized
instance of the glob:
https://git.io/Jf6WM
/cc @Shinigami92
Thanks!
Fixes #45192
npm test.)npm run lint package-name(ortscif notslint.jsonis present).