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
+1 -1
View File
@@ -4,7 +4,7 @@ import Datastore from 'nedb';
import fs from 'fs';
import path from 'path';
import {AccessLevel} from '../../shared/schema/Auth';
import {AccessLevel} from '../../shared/schema/constants/Auth';
import type {Credentials, UserInDatabase} from '../../shared/schema/Auth';