0.1.17 #18
@@ -2,7 +2,10 @@ import { Effect } from "effect"
|
|||||||
import { ImportError } from "../ImportError"
|
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"),
|
try: () => import("@trpc/server"),
|
||||||
catch: cause => new ImportError({ path: "@trpc/server", cause }),
|
catch: cause => new ImportError({ path: "@trpc/server", cause }),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user