-
-
Save Uvacoder/a748120d6d07f4e16d01eb450aeaf967 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