Skip to content

[xml] export additional types already defined - #44960

Merged
sheetalkamat merged 2 commits into
DefinitelyTyped:masterfrom
Shinigami92:xml/declare-module
May 21, 2020
Merged

sheetalkamat merged 2 commits into
DefinitelyTyped:masterfrom
Shinigami92:xml/declare-module

Conversation

@Shinigami92

Copy link
Copy Markdown
Contributor

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.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: <>
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
  • Include tests for your changes
  • If you are making substantial changes, consider adding a 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.

I just used declare module so I can import types like xml.XmlObject in my own project and use it.

@typescript-bot

typescript-bot commented May 21, 2020 •

Copy link
Copy Markdown
Contributor

@Shinigami92 Thank you for submitting this PR!

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.

Code Reviews

This PR can be merged once it's reviewed by a DT maintainer.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ Only a DT maintainer can merge changes without tests

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",
  "now": "-",
  "pr_number": 44960,
  "author": "Shinigami92",
  "owners": [
    "YuJianrong"
  ],
  "dangerLevel": "ScopedAndUntested",
  "headCommitAbbrOid": "693a485",
  "headCommitOid": "693a48562a4daab721aaae5955b06423a8c1ec31",
  "mergeIsRequested": false,
  "stalenessInDays": 0,
  "lastCommitDate": "2020-05-21T15:47:15.000Z",
  "lastCommentDate": "2020-05-21T18:45:22.000Z",
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44960/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "anyPackageIsNew": false,
  "packages": [
    "xml"
  ],
  "files": [
    {
      "filePath": "types/xml/index.d.ts",
      "kind": "definition",
      "package": "xml"
    }
  ],
  "hasDismissedReview": false,
  "travisResult": "pass",
  "lastReviewDate": "2020-05-21T18:20:05.000Z",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 2,
  "isChangesRequested": false
}

@typescript-bot

Copy link
Copy Markdown
Contributor

🔔 @YuJianrong - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@Shinigami92

Copy link
Copy Markdown
Contributor Author

Thank you @typescript-bot 🙂
You helped me to simplified my code 👍

@Shinigami92 Shinigami92 changed the title [xml] declare module [xml] export additional types already defined May 21, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

👋 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 📊
master #44960 diff
Batch compilation
Memory usage (MiB) 69.8 71.0 +1.7%
Type count 9866 9866 0%
Assignability cache size 3300 3300 0%
Language service
Samples taken 321 321 0%
Identifiers in tests 321 321 0%
getCompletionsAtPosition
    Mean duration (ms) 357.3 361.0 +1.0%
    Mean CV 9.7% 10.1%
    Worst duration (ms) 439.8 445.7 +1.4%
    Worst identifier xml _cdata
getQuickInfoAtPosition
    Mean duration (ms) 357.7 363.8 +1.7%
    Mean CV 9.5% 10.3% +8.0%
    Worst duration (ms) 428.3 443.4 +3.5%
    Worst identifier a is

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label May 21, 2020
@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label May 21, 2020
@Shinigami92

Copy link
Copy Markdown
Contributor Author

Thank you @YuJianrong for your review 🙂

@sheetalkamat
sheetalkamat merged commit 558826e into DefinitelyTyped:master May 21, 2020
@Shinigami92
Shinigami92 deleted the xml/declare-module branch May 21, 2020 20:08
jjballano-qatium pushed a commit to jjballano-qatium/DefinitelyTyped that referenced this pull request Jun 16, 2020
ngbrown pushed a commit to ngbrown-forks/DefinitelyTyped that referenced this pull request Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Owner Approved A listed owner of this package signed off on the pull request. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants