انتقل إلى المحتوى الرئيسي

Function: replySchemaOf()

replySchemaOf(contract): TUnion<[TObject<{ data: TSchema; ok: TLiteral<true>; }>, TObject<{ error: TObject<{ category: TUnion<[TLiteral<"validation">, TLiteral<"authorization">, TLiteral<"state">, TLiteral<"conflict">, TLiteral<"upstream">, TLiteral<"internal">]>; code: TString; message: TString; retryable: TBoolean; }>; ok: TLiteral<false>; }>]>

Defined in: packages/contracts/src/registry.ts:307

The schema of the whole reply union for a request contract.

Parameters​

contract​

RequestContract

Returns​

TUnion<[TObject<{ data: TSchema; ok: TLiteral<true>; }>, TObject<{ error: TObject<{ category: TUnion<[TLiteral<"validation">, TLiteral<"authorization">, TLiteral<"state">, TLiteral<"conflict">, TLiteral<"upstream">, TLiteral<"internal">]>; code: TString; message: TString; retryable: TBoolean; }>; ok: TLiteral<false>; }>]>