mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
more refactor
This commit is contained in:
14
src/features/local/globalSettings/globalSettingsModels.ts
Normal file
14
src/features/local/globalSettings/globalSettingsModels.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import z from "zod";
|
||||
|
||||
export const zodGlobalSettingsCourse = z.object({
|
||||
path: z.string(),
|
||||
name: z.string(),
|
||||
});
|
||||
|
||||
export const zodGlobalSettings = z.object({
|
||||
courses: z.array(zodGlobalSettingsCourse),
|
||||
});
|
||||
|
||||
|
||||
export type GlobalSettings = z.infer<typeof zodGlobalSettings>;
|
||||
export type GlobalSettingsCourse = z.infer<typeof zodGlobalSettingsCourse>;
|
||||
Reference in New Issue
Block a user