-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
feat: types for @architect/functions package #50676
feat: types for @architect/functions package #50676
Conversation
@activescott Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged. Status
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": 50676,
"author": "activescott",
"headCommitOid": "e722c020eba24fd8d6949ec7a7d862a09271b789",
"lastPushDate": "2021-01-17T22:10:55.000Z",
"lastActivityDate": "2021-01-17T22:32:32.000Z",
"maintainerBlessed": false,
"hasMergeConflict": false,
"isFirstContribution": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "architect__functions",
"kind": "add",
"files": [
{
"path": "types/architect__functions/http.d.ts",
"kind": "definition"
},
{
"path": "types/architect__functions/index.d.ts",
"kind": "definition"
},
{
"path": "types/architect__functions/package.json",
"kind": "package-meta-ok"
},
{
"path": "types/architect__functions/tables.d.ts",
"kind": "definition"
},
{
"path": "types/architect__functions/test/http-tests.ts",
"kind": "test"
},
{
"path": "types/architect__functions/test/tables-tests.ts",
"kind": "test"
},
{
"path": "types/architect__functions/tsconfig.json",
"kind": "package-meta-ok"
},
{
"path": "types/architect__functions/tslint.json",
"kind": "package-meta-ok"
}
],
"owners": [],
"addedOwners": [
"activescott",
"ryanblock"
],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [],
"ciResult": "pass"
} |
🔔 @activescott — 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...) |
@activescott The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
👋 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 architect__functions with its source on master. Comparison details 📊
|
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. architect__functions (unpkg)was missing the following properties:
|
* Ryan's request in slack https://architecture-as-text.slack.com/archives/C6BGT0D08/p1610920330030000?thread_ts=1593229503.429300&cid=C6BGT0D08 * Ryan is also an active contributor to the package: https://github.com/architect/functions/commits?author=ryanblock
@ryanblock You might want to 👍 this comment/PR so that the DT maintainers are comfortable merging with you listed as a definition owner per e722c02 |
I just published |
* feat: types for @architect/functions package * build: remove fields from package.json (although this makes it harder to test locally :( * build: cleanup for test-all 🤦♂️ * chore: adding @ryanblock as a definition owner per his request in slack. * Ryan's request in slack https://architecture-as-text.slack.com/archives/C6BGT0D08/p1610920330030000?thread_ts=1593229503.429300&cid=C6BGT0D08 * Ryan is also an active contributor to the package: https://github.com/architect/functions/commits?author=ryanblock
Types for package https://www.npmjs.com/package/@architect/functions
npm test <package to test>
.Select one of these and delete the others:
If adding a new definition:
.d.ts
files generated via--declaration
dts-gen --dt
, not by basing it on an existing project.tslint.json
should contain{ "extends": "dtslint/dt.json" }
, and no additional rules.tsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.