-
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
Removal of import of React
as it is no longer needed.
#68395
Conversation
@ShivamKJJW 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. 1 package in this PRCode ReviewsThis PR can be merged once it's reviewed by a DT maintainer. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis PR has been inactive for 31 days — it is considered abandoned, and therefore closed! Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 68395,
"author": "ShivamKJJW",
"headCommitOid": "b1e122f31893bc92e8d822f349ca784e2e6be335",
"mergeBaseOid": "6d0e970598392a8c1c62019150e4f197fadf301c",
"lastPushDate": "2024-01-31T08:18:16.000Z",
"lastActivityDate": "2024-01-31T17:42:49.000Z",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Popular",
"pkgInfo": [
{
"name": "react-native-video",
"kind": "edit",
"files": [
{
"path": "types/react-native-video/index.d.ts",
"kind": "definition"
},
{
"path": "types/react-native-video/tsconfig.json",
"kind": "package-meta-ok"
}
],
"owners": [
"huhuanming",
"Nekith",
"bananer"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Popular"
}
],
"reviews": [],
"mainBotCommentID": 1918604354,
"ciResult": "fail",
"ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/b1e122f31893bc92e8d822f349ca784e2e6be335/checks?check_suite_id=20294130726"
} |
Hey @ShivamKJJW, 😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider 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! |
🔔 @huhuanming @Nekith @bananer — please review this PR in the next few days. Be sure to explicitly select |
It doesn't require any change in the test cases. |
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
1 similar comment
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
@ShivamKJJW The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
I don't understand the change; you're removing the React import, which is most definitely needed to be able to use |
I was trying to find a solution to support this typescript in the project
as right now it is not compatible and it throws ESLint warning as attached
in the screenshot above. Can you find a solution to this? Inside any
project I am able to use this type without any error with removal of React
import.
*Regards,*
*Shivam K.*
…On Wed, 31 Jan 2024 at 11:06 PM, Jake Bailey ***@***.***> wrote:
I don't understand the change; you're removing the React import, which is
most definitely needed to be able to use React.Component. The tsconfig
change doesn't do anything for the tests either; that option does not
affect checking.
—
Reply to this email directly, view it on GitHub
<#68395 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFB3IKIXKAY2M5GRHFFTW4LYRJ6JZAVCNFSM6AAAAABCSTMYAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGU4DQNBRGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Your screenshot in the original issue isn't from ESLint (which you should not be running on The screenshot is a TypeScript error message; it sounds more like you have multiple versions of the React types installed or something. |
@ShivamKJJW I haven't seen any activity on this PR in more than three weeks, and it still has problems that prevent it from being merged. The PR will be closed on Mar 1st (in a week) if the issues aren't addressed. |
@ShivamKJJW To keep things tidy, we have to close PRs that aren't mergeable and don't have activity in the last month. No worries, though — please open a new PR if you'd like to continue with this change. Thank you! |
Reference to issue: 68394
react-native-video
. Removal of React import as it is no more required. import from * is no more valid and provides ESlint error in latest react versions.pnpm test <package to test>
.Select one of these and delete the others:
If changing an existing definition:
package.json
.Error screenshot: