Skip to content

Commit 8f101b9

Browse files
committed
feat(contract)!: improve client error type naming
1 parent 32cb70c commit 8f101b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/contract/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type ClientRest<TClientContext, TInput> =
99
| (undefined extends TInput & TClientContext ? [] : never)
1010
| (undefined extends TClientContext ? [input: TInput] : never)
1111

12-
export type ClientPromiseResult<TOutput, TError extends Error> = Promise<TOutput> & { __typeError?: TError }
12+
export type ClientPromiseResult<TOutput, TError extends Error> = Promise<TOutput> & { __error?: { type: TError } }
1313

1414
export interface Client<TClientContext, TInput, TOutput, TError extends Error> {
1515
(...rest: ClientRest<TClientContext, TInput>): ClientPromiseResult<TOutput, TError>

0 commit comments

Comments
 (0)