DenoDDeno
Powered by
hyppsH
Denoβ€’12mo agoβ€’
2 replies
hypps

Type sharing between Deno server and Expo app not working

Hi all! πŸ‘‹

I'm trying to share tRPC types between a Deno server and an Expo React Native app in a monorepo. My Deno server exports a fully-typed AppRouter for its tRPC routes, and I want the Expo client to import that type directly so that any changes in the backend are immediately reflected in the client's type checking. However, while everything works at runtime, TypeScript in the Expo client resolves the imported AppRouter as any, which means I'm not catching type errors as expected.

I really wanted to give Deno a try, but if I can't resolve this issue, I might have to consider migrating to Node. Has anyone encountered this problem or found a workaround?

Thanks in advance!

https://github.com/emilkallioniemi/FamILY/tree/wip
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Sharing a library between deno and frontend
ArtificerAArtificer / help
16mo ago
Deno.enable not working
MOtherMetroidMMOtherMetroid / help
2y ago