mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user