From 75da7abb3e0836ceaa2ef4ab15503ddda0853d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sat, 7 Sep 2024 03:51:01 +0200 Subject: [PATCH] Export fix --- src/TRPC/importTRPCServer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }), })