Skip to content

Instantly share code, notes, and snippets.

@Uvacoder
Forked from NikolaRHristov/Environment.ts
Created July 16, 2024 14:35
Show Gist options
  • Save Uvacoder/a748120d6d07f4e16d01eb450aeaf967 to your computer and use it in GitHub Desktop.
Save Uvacoder/a748120d6d07f4e16d01eb450aeaf967 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