Function asApiCallJsonResult
- asApiCallJsonResult<TType>(value, config?): undefined | TType
Type Parameters
TType extends SchemaFields & object & {
call: string;
contentType: "application/json";
data: ApiCallJsonResultType;
} & {
schema: "network.xyo.api.call.result";
}
Parameters
value: unknown
Optional
config: TypeCheckConfig
Returns undefined | TType
- asApiCallJsonResult<TType_1>(value, assert, config?): TType_1
Type Parameters
TType_1 extends SchemaFields & object & {
call: string;
contentType: "application/json";
data: ApiCallJsonResultType;
} & {
schema: "network.xyo.api.call.result";
}
Parameters
value: unknown
assert: string | (() => string)
Optional
config: TypeCheckConfig