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

[koa-subdomain] Added Types for koa-subdomain #52090

Merged
merged 7 commits into from
Mar 30, 2021

Conversation

BolZer
Copy link
Contributor

@BolZer BolZer commented Mar 30, 2021

Please fill in this template.

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tslint.json should contain { "extends": "dtslint/dt.json" }, and no additional rules.
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

@typescript-bot typescript-bot added the New Definition This PR creates a new definition package. label Mar 30, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Mar 30, 2021

@BolZer 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 PR

Code Reviews

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

Status

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

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": 52090,
  "author": "BolZer",
  "headCommitOid": "252a1402a0109eb704ed0bb571994f3446781954",
  "lastPushDate": "2021-03-30T18:22:26.000Z",
  "lastActivityDate": "2021-03-30T21:53:37.000Z",
  "maintainerBlessed": false,
  "mergeOfferDate": "2021-03-30T21:54:12.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "koa-subdomain",
      "kind": "add",
      "files": [
        {
          "path": "types/koa-subdomain/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/koa-subdomain/koa-subdomain-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/koa-subdomain/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/koa-subdomain/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [],
      "addedOwners": [
        "BolZer"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "andrewbranch",
      "date": "2021-03-30T21:53:37.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "martin-badin",
      "date": "2021-03-30T19:03:48.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Mar 30, 2021
@typescript-bot
Copy link
Contributor

🔔 @BolZer — 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 moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board Mar 30, 2021
@typescript-bot
Copy link
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?

These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to koa-subdomain with its source on master.

Comparison details 📊
Batch compilation
Type count 12465
Assignability cache size 2658
Language service measurements
Samples taken 24
Identifiers in tests 24
getCompletionsAtPosition
    Mean duration (ms) 403.0
    Mean CV 11.4%
    Worst duration (ms) 476.4
    Worst identifier listen
getQuickInfoAtPosition
    Mean duration (ms) 412.3
    Mean CV 12.3%
    Worst duration (ms) 446.4
    Worst identifier Router
System information
Node version v14.16.0
CPU count 2
CPU speed 2.394 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1109-azure

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Mar 30, 2021
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Needs Author Action in New Pull Request Status Board Mar 30, 2021
@typescript-bot
Copy link
Contributor

@BolZer One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

Extend koa-subdomain-tests.ts to include the newly added match method
@typescript-bot typescript-bot removed the Revision needed This PR needs code changes before it can be merged. label Mar 30, 2021
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Mar 30, 2021
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board Mar 30, 2021
@typescript-bot
Copy link
Contributor

@martin-badin Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label Mar 30, 2021
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Mar 30, 2021
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Mar 30, 2021
@BolZer
Copy link
Contributor Author

BolZer commented Mar 30, 2021

Ready to merge

@andrewbranch
Copy link
Member

@typescript-bot ahem ☝️

@typescript-bot
Copy link
Contributor

I just published @types/koa-subdomain@3.0.0 to npm.

@elibarzilay elibarzilay moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Apr 27, 2021
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintainer Approved New Definition This PR creates a new definition package. Other Approved This PR was reviewed and signed-off by a community member. 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.

None yet

4 participants