Glen Kurio
Glen Kurio
HHono
Created by Glen Kurio on 8/17/2024 in #help
How to separate code into files for each handler without loosing the hono RPC typesafety?
I have an auth route , which i separated into its own file. But each route with method and handler are chained in one file and it already has 400+ lines of code. When trying to separate it into files and chain them all in index.ts with route(), RPC start to loose typesafety. Can someone share some patterns on how to do something like this ?
2 replies