fix: types when using yarn
This commit is contained in:
parent
1de0dbe509
commit
5b6b97e86c
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user