fix: types when using yarn

This commit is contained in:
Samuel 2023-03-17 16:36:44 +01:00
parent 1de0dbe509
commit 5b6b97e86c
3 changed files with 6 additions and 2 deletions

4
.gitignore vendored
View File

@ -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

View File

@ -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));

View File

@ -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";