-
Notifications
You must be signed in to change notification settings - Fork 30.4k
intercom-web: Make intercomSettings
optional to allow delete window.intercomSettings
(New change in TS 4.0)
#47191
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
} |
🔔 @fongandrew @salbahra @onatm @bingo4508 — 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. |
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?). |
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.
@tklepzig Could you tell me what do you mean by delete window.intercomSettings
? My knowledge of TS and intercom (or any frontend technology) could be a bit outdated atm.
@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? |
that was a really nice explanation, thank you @tklepzig 👍 I am happy to move forward with this PR |
Ready to merge |
I just published |
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
(ortsc
if notslint.json
is 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)