Skip to content

Instantly share code, notes, and snippets.

@NikolaRHristov
Last active July 16, 2024 14:35
Show Gist options
  • Save NikolaRHristov/63d2aa5e602b03e7f62f2554756e5dfb to your computer and use it in GitHub Desktop.
Save NikolaRHristov/63d2aa5e602b03e7f62f2554756e5dfb to your computer and use it in GitHub Desktop.
import { z } from "zod";
export const Fn = z.object({
API: z
.string()
.url("Must be a URL")
.endsWith("/", { message: "URL must end with /" }),
Socket: z
.string()
.url("Must be a URL")
.endsWith("/", { message: "URL must end with /" }),
});
export type Type = z.infer<typeof Fn>;
export type { Type as default };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment