This commit is contained in:
@@ -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 }),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user