Skip to content
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

Add types for react-native-markdown-view #61734

Closed
wants to merge 4 commits into from
Closed

Add types for react-native-markdown-view #61734

wants to merge 4 commits into from

Conversation

fabio-nettis
Copy link
Contributor

Add type definitions for the react-native-markdown-view package. Maintainer seems to have abandoned the repository and the type definitions used in the package are not exported anywhere in it. I basically just copied the type definitions from here and modified them a bit.

Please fill in this template.

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration

@typescript-bot
Copy link
Contributor

typescript-bot commented Aug 15, 2022

@fabio-nettis Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

This PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ❌ Continuous integration tests have failed
  • 🕐 Only a DT maintainer can approve changes when there are new packages added

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This 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": 61734,
  "author": "fabio-nettis",
  "headCommitOid": "ad3359649ef5515a31f9105e3e1cff873f35860e",
  "mergeBaseOid": "46eb6db86dd5dc57737e3cb07ff71dbf8fed0d51",
  "lastPushDate": "2022-08-15T10:22:33.000Z",
  "lastActivityDate": "2022-08-15T10:30:18.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "react-native-markdown-view",
      "kind": "add",
      "files": [
        {
          "path": "types/react-native-markdown-view/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react-native-markdown-view/react-native-markdown-view-tests.tsx",
          "kind": "test"
        },
        {
          "path": "types/react-native-markdown-view/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/react-native-markdown-view/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [],
      "addedOwners": [
        "fabio-nettis"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 1214782049,
  "ciResult": "fail",
  "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/ad3359649ef5515a31f9105e3e1cff873f35860e/checks?check_suite_id=7815118552"
}

@typescript-bot typescript-bot added the New Definition This PR creates a new definition package. label Aug 15, 2022
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Aug 15, 2022
@typescript-bot
Copy link
Contributor

🔔 @fabio-nettis — you're the only owner, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...)

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Aug 15, 2022
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Aug 15, 2022
@typescript-bot
Copy link
Contributor

@fabio-nettis 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.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Aug 15, 2022
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Aug 15, 2022
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Aug 15, 2022
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Aug 15, 2022
@typescript-bot
Copy link
Contributor

@fabio-nettis 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.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Aug 15, 2022
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Aug 15, 2022
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Aug 15, 2022
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Aug 15, 2022
@typescript-bot
Copy link
Contributor

@fabio-nettis 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.

@fabio-nettis
Copy link
Contributor Author

Maintainer action needed

Checked the CI errors and it doesn't seem to be an issue with my definition but the errors origin form the react-native package. Here an error snippet:

Error: ../react-native/globals.d.ts(77,15): error TS2300: Duplicate identifier 'FormData'.
Error: ../react-native/globals.d.ts(101,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'Headers' must be of type '{ new (init?: HeadersInit | undefined): Headers; prototype: Headers; }', but here has type '{ new (init?: HeadersInit_ | undefined): Headers; prototype: Headers; }'.
Error: ../react-native/globals.d.ts(135,5): error TS2717: Subsequent property declarations must have the same type.  Property 'body' must be of type 'BodyInit | null | undefined', but here has type 'BodyInit_ | undefined'.
Error: ../react-native/globals.d.ts(137,5): error TS2717: Subsequent property declarations must have the same type.  Property 'headers' must be of type 'HeadersInit | undefined', but here has type 'HeadersInit_ | undefined'.
...

@typescript-bot
Copy link
Contributor

@fabio-nettis 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 Sep 14th (in a week) if the issues aren't addressed.

@typescript-bot typescript-bot added the Abandoned This PR had no activity for a long time, and is considered abandoned label Sep 11, 2022
@typescript-bot typescript-bot removed this from Needs Author Action in New Pull Request Status Board Sep 15, 2022
@typescript-bot
Copy link
Contributor

@fabio-nettis 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Abandoned This PR had no activity for a long time, and is considered abandoned New Definition This PR creates a new definition package. The CI failed When GH Actions fails
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants