diff --git a/src/TRPC/importTRPCServer.ts b/src/TRPC/importTRPCServer.ts index 6377caa..43db62b 100644 --- a/src/TRPC/importTRPCServer.ts +++ b/src/TRPC/importTRPCServer.ts @@ -2,7 +2,10 @@ import { Effect } from "effect" import { ImportError } from "../ImportError" -export const importTRPCServer = Effect.tryPromise({ +export const importTRPCServer: Effect.Effect< + typeof import("@trpc/server"), + ImportError +> = Effect.tryPromise({ try: () => import("@trpc/server"), catch: cause => new ImportError({ path: "@trpc/server", cause }), })