aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/BackendConfig.ts
blob: 41737c0b5d70f0c79c18a905e53320bc3825f0f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* eslint-disable @typescript-eslint/no-redeclare -- Declare types with their companion objects */

import { z } from 'zod';

export const ENDPOINT = 'config.json';

const BackendConfig = z.object({
  webSocketURL: z.string().url(),
});

type BackendConfig = z.infer<typeof BackendConfig>;

export default BackendConfig;