Skip to content

Conversation

@kentakang
Copy link
Contributor

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 Apr 16, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 16, 2021

@kentakang 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

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": 52398,
  "author": "kentakang",
  "headCommitOid": "18703921b64a9052f61d8c1e8e3d254abfd4f577",
  "lastPushDate": "2021-04-16T02:41:53.000Z",
  "lastActivityDate": "2021-04-16T02:41:53.000Z",
  "maintainerBlessed": false,
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "aws-lambda-fastify",
      "kind": "add",
      "files": [
        {
          "path": "types/aws-lambda-fastify/aws-lambda-fastify-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/aws-lambda-fastify/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/aws-lambda-fastify/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/aws-lambda-fastify/tsconfig.json",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson)"
        },
        {
          "path": "types/aws-lambda-fastify/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [],
      "addedOwners": [
        "kentakang"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @kentakang — 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 Apr 16, 2021
@typescript-bot
Copy link
Contributor

@kentakang 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 added Check Config Changes a module config files and removed The CI failed When GH Actions fails labels Apr 16, 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 aws-lambda-fastify with its source on master.

Comparison details 📊
Batch compilation
Type count 14229
Assignability cache size 2867
Language service measurements
Samples taken 52
Identifiers in tests 52
getCompletionsAtPosition
    Mean duration (ms) 384.4
    Mean CV 11.5%
    Worst duration (ms) 475.9
    Worst identifier proxy
getQuickInfoAtPosition
    Mean duration (ms) 381.3
    Mean CV 11.5%
    Worst duration (ms) 468.0
    Worst identifier IncomingMessage
System information
Node version v14.16.1
CPU count 2
CPU speed 2.294 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1111-azure

Copy link
Collaborator

@orta orta left a comment

Choose a reason for hiding this comment

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

Cool, looks good

@orta orta merged commit c253552 into DefinitelyTyped:master Apr 22, 2021
@typescript-bot
Copy link
Contributor

I just published @types/aws-lambda-fastify@1.4.0 to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Check Config Changes a module config files New Definition This PR creates a new definition package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants