Closed bnsngltn closed 2 months ago
Latest commit: 31ae32ff92c3fcfeccf9e3f213f92010be965f01
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@bnsngltn is attempting to deploy a commit to the ts-rest Team on Vercel.
A member of the Team first needs to authorize it.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
CI is running/has finished running commands for commit 31ae32ff92c3fcfeccf9e3f213f92010be965f01. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this CI Pipeline Execution
Sent with 💌 from NxCloud.
Thank you!
Hello, thanks for the awesome release that adds support to Next App Router.
Everything works great but what I would like to achieve is to have multiple routers and merge them together as I instantiate the handler. I have noticed that the serverless package does not have any docs yet and that the linked example was very bare.
Basically what I'm trying to achieve is something like this:
The sample contract
Then I wanted to define a separate router under the
hello
namespace using the tsr utility I have found in the source code. It was exported, but I could not find any usage to it, so I assumed it's a utility function for us the end users. Correct me if I'm wrongI then get a TypeScript Error router when trying to put the
helloRouter
under my handler on my route handler definition saying that myhelloRouter
cannot be assigned to the expected router shape of thecreateNextHandler
function.Note: This only occurs when
strict
is set totrue
intsconfig.json