Last active
July 16, 2024 14:35
-
-
Save NikolaRHristov/63d2aa5e602b03e7f62f2554756e5dfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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