Skip to content

Commit 00fb0f4

Browse files
authored
fix(server): cannot infer without reference issue (#315)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - We introduced additional type definitions to enhance integration and error handling behind the scenes. These improvements promote smoother interoperability across various components, leading to a more consistent and reliable overall platform performance. While this update is technical in nature, it lays the groundwork for improved system stability and better end-user experiences. As a result, users may notice enhanced overall performance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 1a3a083 commit 00fb0f4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/contract/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ export * from './router-utils'
1515
export * from './schema'
1616

1717
export { ORPCError } from '@orpc/client'
18+
export type { HTTPMethod, HTTPPath } from '@orpc/client'
1819
export type { Registry, ThrowableError } from '@orpc/shared'

packages/server/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export * from './router-hidden'
2121
export * from './router-utils'
2222

2323
export { isDefinedError, ORPCError, safe } from '@orpc/client'
24+
export type { HTTPMethod, HTTPPath } from '@orpc/client'
2425
export { eventIterator, type, ValidationError } from '@orpc/contract'
2526
export type {
2627
ContractProcedure,
@@ -31,6 +32,7 @@ export type {
3132
InferSchemaInput,
3233
InferSchemaOutput,
3334
InputStructure,
35+
MergedErrorMap,
3436
Meta,
3537
OutputStructure,
3638
Route,

0 commit comments

Comments
 (0)