| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
⚠️ No Changeset foundLatest commit: 19c2bf4 Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset. This PR includes no changesetsWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Click here to learn what changesets are, and how to add one. Click here if you're a maintainer who wants to add a changeset to this PR |
Sorry, something went wrong.
|
All contributors have signed the CLA ✍️ ✅ |
Sorry, something went wrong.
|
I have read the CLA Document and I hereby sign the CLA |
Sorry, something went wrong.
npm i https://pkg.pr.new/cloudflare/capnweb@259 npm i https://pkg.pr.new/cloudflare/capnweb/capnweb-validate@259 commit: 19c2bf4 |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the DevEx wins and the included video! That's how you do a PR right there.
Looks good, just getting a few others on the team to take a look
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #258
When creating a stub type from a server class T, it drop keys such as brand symbols. Currently it iterates with Exclude<keyof T, …>, which makes TypeScript then treats the result as a new object, so "Go to Definition" on api.authenticate() no longer jumps to T.authenticate. This PR still drops the same keys, but maps over keyof T first and then Pick.
Here is a minimal PoC difference between using Exclude<keyof T, …> vs using Pick:
https://www.typescriptlang.org/play/?#code/MYGwhgzhAEDKYFsAOICm0DeAoa0BmA9gQBQCUmOu0ATqgC4Cu1AdtHdQ6gNyUC+lAIzDUyFKjXpNW7Tj1z9+WOgE8k6AIIAeACoA+aAF4x0ANoBpaAEtWAUQAeoBgBNUmgNaplBPNG0AaaAByIWpA3QBdAC5fc3CeXh4lVXQAIR19IwAFS2A3TUpscXMrVg8vH20omLM4vj9Ke0cXd09vXwDg4TCsXUSXUGF0YAJmCDpoMGiteGQ0Xqx+8FpoYdHxgWi0mZRUeawwADpCElIeAHoz6AA9AH4sASOiMnPL26wsIA
capnweb.mp4