Uh oh!
There was an error while loading. Please reload this page.
intercom-web: Make intercomSettings optional to allow delete window.intercomSettings (New change in TS 4.0) - #47191
Conversation
@tklepzig Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 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. 1 package in this PRCode ReviewsThis PR can be merged once it's reviewed. 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": 47191,
"author": "tklepzig",
"owners": [
"fongandrew",
"salbahra",
"onatm",
"bingo4508"
],
"dangerLevel": "ScopedAndUntested",
"headCommitAbbrOid": "81111f1",
"headCommitOid": "81111f13729ead758d07e0a0ac1a96eadb21b09a",
"mergeIsRequested": true,
"stalenessInDays": 0,
"lastPushDate": "2020-09-01T12:28:31.000Z",
"lastCommentDate": "2020-09-02T09:10:38.000Z",
"maintainerBlessed": true,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/47191/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": true,
"popularityLevel": "Well-liked by everyone",
"newPackages": [],
"packages": [
"intercom-web"
],
"files": [
{
"path": "types/intercom-web/index.d.ts",
"kind": "definition",
"package": "intercom-web"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-09-02T09:09:11.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
typescript-bot
commented
Sep 1, 2020
🔔 @fongandrew@salbahra@onatm @bingo4508 — please review this PR in the next few days. Be sure to explicitly select |
typescript-bot
commented
Sep 1, 2020
👋 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. |
orta
commented
Sep 1, 2020
Note for reviewers: This would potentially be a breaking change for people using strict mode (because they now have to validate the existence of that value) |
Hey @orta, thank you for letting us know that this would be a potential breaking change. I am not sure what would be the real impact for the future since the declaration is complete(-ish?). |
@onatm Of course. We use Intercom for our customer's feedback. For that, we have to set it up during startup (https://developers.intercom.com/installing-intercom/docs/configuration). While doing this, we add the prop Now with TS 4.0 a change has been introduced which allows See also a similar issue in another react library for intercom: nhagen/react-intercom#39 Does this answer your question? |
onatm
commented
Sep 2, 2020
that was a really nice explanation, thank you @tklepzig 👍 I am happy to move forward with this PR |
onatm
commented
Sep 2, 2020
Ready to merge |
typescript-bot
commented
Sep 2, 2020
I just published |
tklepzig
commented
Sep 2, 2020
Thanks a lot! |
…` optional to allow `delete window.intercomSettings` (New change in TS 4.0) by @tklepzig
Please fill in this template.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
If changing an existing definition:
Provide a URL to documentation or source code which provides context for the suggested changes:
(https://medium.com/javascript-in-plain-english/whats-new-with-typescript-4-0-beta-a2e674846ef3)