13 lines
358 B
TypeScript
13 lines
358 B
TypeScript
import rawconfig from "../config.json" with {type: "json"};
|
|
import {z} from 'zod';
|
|
const configT = z.object({
|
|
token: z.string(),
|
|
listenbrainzAccount: z.string(),
|
|
gitapi: z.string(),
|
|
sharkeyInstance:z.string(),
|
|
// applicationid: z.string(),
|
|
});
|
|
export type Config = z.infer<typeof configT>;
|
|
export const config: Config = configT.parse(rawconfig);
|
|
|
|
|