From 82634bb540c26b6da988c58e3605c1f512de4eb4 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Wed, 29 Nov 2023 14:56:30 -0800 Subject: [PATCH] re-export result types from main --- package.json | 2 +- router/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f45b6cbd..d49389b6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@replit/river", "sideEffects": false, "description": "It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!", - "version": "0.5.0", + "version": "0.5.1", "type": "module", "exports": { ".": "./dist/router/index.js", diff --git a/router/index.ts b/router/index.ts index dc5b4b00..1fbc15ed 100644 --- a/router/index.ts +++ b/router/index.ts @@ -14,3 +14,5 @@ export type { ServerClient } from './client'; export { createServer } from './server'; export type { Server } from './server'; export type { ServiceContext, ServiceContextWithState } from './context'; +export { Ok, Err, UNCAUGHT_ERROR, RiverUncaughtSchema } from './result'; +export type { RiverErrorSchema, RiverError, Result } from './result';