mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import z from "zod";
|
|
|
|
export const zodGlobalSettingsCourse = z.object({
|
|
path: z.string(),
|
|
name: z.string(),
|
|
});
|
|
|
|
export const zodGlobalSettings = z.object({
|
|
courses: z.array(zodGlobalSettingsCourse),
|
|
feedbackDelims: z.record(z.string()).optional(),
|
|
});
|
|
|
|
|
|
export type GlobalSettings = z.infer<typeof zodGlobalSettings>;
|
|
export type GlobalSettingsCourse = z.infer<typeof zodGlobalSettingsCourse>; |