mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-25 06:40:30 +08:00
This way we can deploy back-end API changes that are backwards compatible without breaking the UI. Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
12 lines
247 B
TypeScript
12 lines
247 B
TypeScript
import type { ZodSchema } from "zod";
|
|
|
|
import { literal, object } from "zod";
|
|
|
|
export interface SuccessResponse {
|
|
success: true;
|
|
}
|
|
|
|
export const successResponseSchema = object({
|
|
success: literal(true),
|
|
}) satisfies ZodSchema<SuccessResponse>;
|