diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | src/util/schemas/Validator.ts | 2 | ||||
-rw-r--r-- | src/util/util/index.ts | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index bc780d64..9ac5d944 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,10 @@ assets/cache .env config.json assets/cacheMisses +assets/client_test +scripts/client.js +src/api/middlewares/TestClient.ts +yarn.lock .vscode/settings.json diff --git a/src/util/schemas/Validator.ts b/src/util/schemas/Validator.ts index 3190dd05..7ddd9b72 100644 --- a/src/util/schemas/Validator.ts +++ b/src/util/schemas/Validator.ts @@ -43,7 +43,7 @@ export const ajv = new Ajv({ allowUnionTypes: true, }); -addFormats(ajv); +addFormats(ajv as never); export function validateSchema<G extends object>(schema: string, data: G): G { const valid = ajv.validate(schema, normalizeBody(data)); diff --git a/src/util/util/index.ts b/src/util/util/index.ts index 93656ecb..fa9dd326 100644 --- a/src/util/util/index.ts +++ b/src/util/util/index.ts @@ -24,7 +24,7 @@ export * from "./cdn"; export * from "./Config"; export * from "./Constants"; export * from "./Database"; -export * from "./email"; +export * from "./email/index"; export * from "./Event"; export * from "./FieldError"; export * from "./Intents"; |