@yoroi/portfolio
Version:
The Portfolio package of Yoroi SDK
6 lines • 492 B
JavaScript
import { Api } from '@yoroi/types';
import z from 'zod';
export const responseRecordWithCacheSchemaMaker = recordSchema => {
return z.union([z.tuple([z.literal(Api.HttpStatusCode.Ok), recordSchema, z.string(), z.number().nonnegative()]), z.tuple([z.literal(Api.HttpStatusCode.NotModified), z.number().nonnegative()]), z.tuple([z.literal(Api.HttpStatusCode.InternalServerError), z.string(), z.number().nonnegative()])]);
};
//# sourceMappingURL=response-record-with-cache-schema-maker.js.map