mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-25 06:40:30 +08:00
12 lines
259 B
TypeScript
12 lines
259 B
TypeScript
import type { ZodSchema } from "zod";
|
|
|
|
import { literal, strictObject } from "zod";
|
|
|
|
export interface SuccessResponse {
|
|
success: true;
|
|
}
|
|
|
|
export const successResponseSchema = strictObject({
|
|
success: literal(true),
|
|
}) satisfies ZodSchema<SuccessResponse>;
|