shared: schema: split enums from schemas

Otherwise zod will be included in client dependency graph and
increase the bundle size by 10kB unnecessarily.
This commit is contained in:
Jesse Chan
2020-10-28 12:06:14 +08:00
parent 20a1c2a75b
commit 9e03d2a385
14 changed files with 72 additions and 68 deletions
+5
View File
@@ -0,0 +1,5 @@
// eslint-disable-next-line import/prefer-default-export
export enum AccessLevel {
USER = 5,
ADMINISTRATOR = 10,
}
@@ -0,0 +1,2 @@
// eslint-disable-next-line import/prefer-default-export
export const SUPPORTED_CLIENTS = ['qBittorrent', 'rTorrent'] as const;