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(express-serve-static-core): Add Layer typings to express Router & Route stack prop #69539
base: master
Are you sure you want to change the base?
Conversation
@douglasg14b 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 PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis PR has been inactive for 13 days — please try to get reviewers! Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 69539,
"author": "douglasg14b",
"headCommitOid": "e17eed1e4f5ebf351fa09e6971f6dae0844b00d5",
"mergeBaseOid": "d74e847b9f94d5b7d6fbc5d754a84465d52bdeed",
"lastPushDate": "2024-05-06T23:01:46.000Z",
"lastActivityDate": "2024-05-06T23:30:56.000Z",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "express-serve-static-core",
"kind": "edit",
"files": [
{
"path": "types/express-serve-static-core/index.d.ts",
"kind": "definition"
}
],
"owners": [
"borisyankov",
"micksatana",
"samijaber",
"JoseLion",
"dwrss",
"andoshin11"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [],
"mainBotCommentID": 2097069294,
"ciResult": "pass"
} |
Hey @douglasg14b, 😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider 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! |
🔔 @borisyankov @micksatana @samijaber @JoseLion @dwrss @andoshin11 — please review this PR in the next few days. Be sure to explicitly select |
@douglasg14b The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
This PR appears to be similar (Though with extraneous format changes), but was closed: #63329 Unsure how to add tests for this, I did this entirely on github and did not pull the repo. These typings are not that complex, and are pulled from what I could gleam of the source. |
@douglasg14b The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
I can't find where this comes from in source, but if I inspect a layer object it exists on it indicating the HTTP verb
Re-ping @borisyankov, @micksatana, @samijaber, @JoseLion, @dwrss, @andoshin11: This PR has been out for over a week, yet I haven't seen any reviews. Could someone please give it some attention? Thanks! |
Relevant source for Layer:
route
property: https://github.com/expressjs/express/blob/4b9cd2fd0e13519a16bc36e8b4212e7924698b2e/lib/router/index.js#L227
route
assignment: https://github.com/expressjs/express/blob/4b9cd2fd0e13519a16bc36e8b4212e7924698b2e/lib/router/index.js#L511route
assignment toundefined
: https://github.com/expressjs/express/blob/4b9cd2fd0e13519a16bc36e8b4212e7924698b2e/lib/router/index.js#L481stack
prop: https://github.com/expressjs/express/blob/4b9cd2fd0e13519a16bc36e8b4212e7924698b2e/lib/router/route.js#L200stack
prop: https://github.com/expressjs/express/blob/4b9cd2fd0e13519a16bc36e8b4212e7924698b2e/lib/router/index.js#L513Please fill in this template.
pnpm test <package to test>
.Select one of these and delete the others:
If changing an existing definition:
package.json
.