mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-08 08:42:10 +00:00
fix: types when using yarn
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user