Inferring types on the server

Is it also possible to infer the return-types of specific API routes on the server?

I am creating a better-auth wrapper using effect-ts for my application and am missing some type-safety on the server.

serverClient.$Infer


gives the following type

(property) $Infer: {
    Session: {
        session: {};
        user: {};
    };
}
Was this page helpful?