-
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
[@types/react-adal v0.5.0] endpoint in adalConfig is no longer optional due to #69 in react-adal library #44168
Conversation
Simple change to type definition due to relatively new functionality in react-adal version 0.5.0. Code change is documented at salvoravida/react-adal#69 Thanks to @shermayne for delving into this with me. |
👋 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. |
@njomb Thank you for submitting this PR! 🔔 @dkorolev1 - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
@njomb Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 - keep an eye on this comment as I'll be updating it with information as things progress. 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
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": 44168,
"author": "njomb",
"owners": [
"dkorolev1"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "aca7278",
"headCommitOid": "aca7278d4a45674c6ebe49e1a5c848f4c6d511d7",
"mergeIsRequested": false,
"stalenessInDays": 10,
"lastCommitDate": "2020-04-24T04:30:59.000Z",
"lastAuthorCommentDate": "2020-04-24T04:29:00.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44168/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": true,
"popularityLevel": "Well-liked by everyone",
"anyPackageIsNew": false,
"packages": [
"react-adal"
],
"files": [
{
"filePath": "types/react-adal/index.d.ts",
"kind": "definition",
"package": "react-adal"
},
{
"filePath": "types/react-adal/react-adal-tests.tsx",
"kind": "test",
"package": "react-adal"
}
],
"hasDismissedReview": false,
"travisResult": "pass",
"reviewersWithStaleReviews": [],
"approvalFlags": 0,
"isChangesRequested": false
} |
🔔 @dkorolev1 - please review this PR in the next few days. Be sure to explicitly select |
1 similar comment
🔔 @dkorolev1 - please review this PR in the next few days. Be sure to explicitly select |
Hi @njomb , Since the endpoints parameter can still be optional in the original implementation of the adal lib (based on this condition) to support some scenarios, I think it would be more reasonable to check for null this parameter here as well, than just change the TS definition. @salvoravida, what do you think? Thanks |
@dkorolev1 's suggestion seems on point - at least right now, the library seems like it (mostly) handles omitting the |
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If changing an existing definition:
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.