gitscope
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/hosts/dialogs/mutation/profiles/hysteria2/schema.ts · master
Source
1 d636f3f Dawsh 2y ago import { z } from "zod";
2 d636f3f Dawsh 2y ago import { HostSchema, TlsSchema } from "@marzneshin/modules/hosts";
3 d636f3f Dawsh 2y ago
4 d636f3f Dawsh 2y ago export const Hysteria2Schema =
5 d636f3f Dawsh 2y ago HostSchema.merge(
6 d636f3f Dawsh 2y ago TlsSchema.extend({
7 d636f3f Dawsh 2y ago path: z.string().nullable().optional(),
8 d636f3f Dawsh 2y ago }))
9 d636f3f Dawsh 2y ago ;
10 d636f3f Dawsh 2y ago
11 d636f3f Dawsh 2y ago export type Hysteria2SchemaType = z.infer<typeof Hysteria2Schema>;