-
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
fix(multer): export Multer class contract for consumption #46330
fix(multer): export Multer class contract for consumption #46330
Conversation
I looks change is backward ccompatible. Could be useful if someone with more multer usage logged can look, thanks! |
@peterblazejewicz Thank you for submitting this PR! This is a live comment which I will keep updated. Code 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": 46330,
"author": "peterblazejewicz",
"owners": [
"jt000",
"vilic",
"DavidBR-SW",
"mxl",
"hyunseob",
"PierreTchuente",
"thrymgjol"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "38ca3e8",
"headCommitOid": "38ca3e80a78cb126fc4d1e2f339e93c4017485c2",
"mergeIsRequested": true,
"stalenessInDays": 0,
"lastPushDate": "2020-07-25T15:05:07.000Z",
"lastCommentDate": "2020-08-14T07:52:46.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46330/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Popular",
"anyPackageIsNew": false,
"packages": [
"multer"
],
"files": [
{
"path": "types/multer/index.d.ts",
"kind": "definition",
"package": "multer"
},
{
"path": "types/multer/multer-tests.ts",
"kind": "test",
"package": "multer"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-08-13T23:02:40.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 4,
"isChangesRequested": false
} |
🔔 @jt000 @vilic @DavidBR-SW @mxl @HyunSeob @PierreTchuente @thrymgjol — please review this PR in the next few days. Be sure to explicitly select |
👋 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. |
Nice @peterblazejewicz, thanks! I'm just curious, why an abstract class vs. an interface? |
No specific reason, IMO could be interface to be more slick. |
This tries to fix issue with non-exported interface of the multer class to the creation code itself, which prevents from using instance methods in proper way. See DefinitelyTyped#41970 for discussion of the problem. /cc @restjohn Thanks! Fixes DefinitelyTyped#41970
10e3cc5
to
38ca3e8
Compare
@restjohn I've redone this detail, thanks for commenting! |
…tract for consumption by @peterblazejewicz This tries to fix issue with non-exported interface of the multer class to the creation code itself, which prevents from using instance methods in proper way. See DefinitelyTyped#41970 for discussion of the problem. /cc @restjohn Thanks! Fixes DefinitelyTyped#41970
…tract for consumption by @peterblazejewicz This tries to fix issue with non-exported interface of the multer class to the creation code itself, which prevents from using instance methods in proper way. See DefinitelyTyped#41970 for discussion of the problem. /cc @restjohn Thanks! Fixes DefinitelyTyped#41970
This tries to fix issue with non-exported interface of the multer class
to the creation code itself, which prevents from using instance methods
in proper way.
See #41970 for discussion of the problem.
/cc @restjohn
Thanks!
Fixes #41970
npm test
.)