We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32cb70c commit 8f101b9Copy full SHA for 8f101b9
1 file changed
packages/contract/src/client.ts
@@ -9,7 +9,7 @@ export type ClientRest<TClientContext, TInput> =
9
| (undefined extends TInput & TClientContext ? [] : never)
10
| (undefined extends TClientContext ? [input: TInput] : never)
11
12
-export type ClientPromiseResult<TOutput, TError extends Error> = Promise<TOutput> & { __typeError?: TError }
+export type ClientPromiseResult<TOutput, TError extends Error> = Promise<TOutput> & { __error?: { type: TError } }
13
14
export interface Client<TClientContext, TInput, TOutput, TError extends Error> {
15
(...rest: ClientRest<TClientContext, TInput>): ClientPromiseResult<TOutput, TError>
0 commit comments