-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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 react-sound playStatus #40592
Fix react-sound playStatus #40592
Conversation
👋 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. |
@PaitoAnderson Thank you for submitting this PR! 🔔 @koss-lebedev - 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. |
hi @PaitoAnderson , what is the benefit of this approach over using an enum? The enum is exported, so you can safely import |
While the typing works, I got a runtime error of import ReactSound, { PlayStatus } from 'react-sound';
<ReactSound url="/sounds/sample.mp3" playStatus={PlayStatus.Playing} /> |
After 5 days, no one has reviewed the PR 😞. A maintainer will be reviewing the PR in the next few days and will either merge it or request revisions. Thank you for your patience! |
@koss-lebedev if the enum declaration in the typings doesn't reflect an export of the underlying code (which it appears not to), it won't work at runtime (when the typings aren't available). |
@PaitoAnderson Thank you for submitting this PR! Code ReviewsBecause this PR edits the configuration file, it can be merged once it's reviewed by a DT maintainer. 🔔 @koss-lebedev - please review this PR in the next few days. Be sure to explicitly select 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",
"pr_number": 40592,
"author": "PaitoAnderson",
"owners": [
"koss-lebedev",
"PaitoAnderson"
],
"dangerLevel": "ScopedAndConfiguration",
"headCommitAbbrOid": "761cd68",
"headCommitOid": "761cd68cf4ca6b20839c13fd0350eb53a11385b3",
"mergeIsRequested": false,
"stalenessInDays": null,
"lastCommitDate": "1970-01-01T00:00:00.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/40592/files",
"hasMergeConflict": false,
"authorIsOwner": true,
"isFirstContribution": false,
"popularityLevel": "Well-liked by everyone",
"anyPackageIsNew": false,
"packages": [
"react-sound"
],
"files": [
{
"filePath": "types/react-sound/index.d.ts",
"kind": "definition",
"package": "react-sound"
},
{
"filePath": "types/react-sound/react-sound-tests.tsx",
"kind": "package-meta",
"package": "react-sound"
}
],
"otherApprovalCount": 0,
"ownerApprovalCount": 0,
"maintainerApprovalCount": 1,
"hasDismissedReview": false,
"travisResult": "pass",
"reviewersWithStaleReviews": [],
"approvalFlags": 4,
"isChangesRequested": false
} |
@PaitoAnderson Everything looks good here. Great job! I am ready to merge this PR on your behalf.
and I'll merge it the next time I look at this PR. |
Please fill in this template.
Fixes leoasis/react-sound#86
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.