Skip to content

Improvement so we can use the encoding without errors in an array.#50556

Merged
typescript-bot merged 3 commits intoDefinitelyTyped:masterfrom
Rechdan:patch-1
Jan 12, 2021
Merged

Improvement so we can use the encoding without errors in an array.#50556
typescript-bot merged 3 commits intoDefinitelyTyped:masterfrom
Rechdan:patch-1

Conversation

@Rechdan
Copy link
Copy Markdown
Contributor

@Rechdan Rechdan commented Jan 12, 2021

Please fill in this template.

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: official docs

…ing in the place of StructTypes, so we can add encoding when dealing with an array of chars/charsnt.
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Jan 12, 2021

@Rechdan Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners, DT maintainers or others

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": 50556,
  "author": "Rechdan",
  "headCommitOid": "dfcdf7c6344070dc1e4a5b7dd4e9e12dd8528258",
  "lastPushDate": "2021-01-12T16:50:37.000Z",
  "lastActivityDate": "2021-01-12T18:26:11.000Z",
  "maintainerBlessed": false,
  "mergeOfferDate": "2021-01-12T17:51:38.000Z",
  "mergeRequestDate": "2021-01-12T18:26:11.000Z",
  "mergeRequestUser": "Rechdan",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "struct",
      "kind": "edit",
      "files": [
        {
          "path": "types/struct/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/struct/struct-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "benallfree"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "benallfree",
      "date": "2021-01-12T17:51:02.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @benallfree — 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.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Jan 12, 2021
@typescript-bot
Copy link
Copy Markdown
Contributor

@Rechdan The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Jan 12, 2021
@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 #50556 diff
Batch compilation
Memory usage (MiB) 75.5 72.6 -3.8%
Type count 9389 9394 0%
Assignability cache size 1824 1823 0%
Language service
Samples taken 45 52 +16%
Identifiers in tests 45 52 +16%
getCompletionsAtPosition
    Mean duration (ms) 323.4 323.3 0.0%
    Mean CV 13.6% 13.2%
    Worst duration (ms) 407.1 403.3 -0.9%
    Worst identifier allocate array
getQuickInfoAtPosition
    Mean duration (ms) 313.4 316.7 +1.1%
    Mean CV 12.7% 12.3%
    Worst duration (ms) 379.8 411.7 +8.4%
    Worst identifier Struct cstruct

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 Jan 12, 2021
Copy link
Copy Markdown
Contributor

@benallfree benallfree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're back for more. Thank you!

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Jan 12, 2021
@typescript-bot
Copy link
Copy Markdown
Contributor

@Rechdan Everything looks good here. Great job! I am ready to merge this PR (at dfcdf7c) on your behalf.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@benallfree: you can do this too.)

@Rechdan
Copy link
Copy Markdown
Contributor Author

Rechdan commented Jan 12, 2021

Ready to merge

@typescript-bot typescript-bot merged commit 8d6864f into DefinitelyTyped:master Jan 12, 2021
@typescript-bot
Copy link
Copy Markdown
Contributor

I just published @types/struct@0.0.3 to npm.

kaznovac pushed a commit to kaznovac/DefinitelyTyped that referenced this pull request Mar 2, 2021
…ng without errors in an array. by @Rechdan

* Changed type from optional to obligatory in array and added plain string in the place of StructTypes, so we can add encoding when dealing with an array of chars/charsnt.

* Added tests.

* Removed "I" prefix from interface.
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. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants