Skip to content
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: expose trpc types to client for app router #1842

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

nick22985
Copy link
Contributor

@nick22985 nick22985 commented Apr 22, 2024

I believe the correct place for this is in trpc/react.tsx to expose it to the client

Discord Questions about this:
https://discord.com/channels/966627436387266600/988912020558602331/1231632715493802085

✅ Checklist

  • I have followed every step in the contributing guide (updated 2022-10-06).
  • The PR title follows the convention we established conventional-commit
  • I performed a functional test on my final commit

Changelog

Exposes inferRouterInputs & inferRouterOutputs as RouterInputs & RouterOutputs to the client in the app router


Screenshots

Screenshot 2024-04-23 052125

Screenshot 2024-04-23 052333

💯

Copy link

changeset-bot bot commented Apr 22, 2024

🦋 Changeset detected

Latest commit: 72dc7d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-t3-app Minor

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

Copy link

vercel bot commented Apr 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
create-t3-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2024 7:57pm

Copy link

vercel bot commented Apr 22, 2024

@nick22985 is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

@nick22985 nick22985 changed the title feat: expose trpc types to client feat: expose trpc types to client app router Apr 22, 2024
@nick22985 nick22985 changed the title feat: expose trpc types to client app router feat: expose trpc types to client for app router Apr 22, 2024
@juliusmarminge juliusmarminge added this pull request to the merge queue Apr 22, 2024
Merged via the queue into t3-oss:main with commit 088a773 Apr 22, 2024
266 of 267 checks passed
@nick22985 nick22985 deleted the trpcInferTypes branch April 22, 2024 21:23
devvianto605 pushed a commit to devvianto605/create-devviantex-nextjs-app that referenced this pull request Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants