Use strict type checking

This commit is contained in:
Hornwitser committed 2023-08-12 02:31:17 +02:00
1 parent 2ca8e69025
commit a66e930997
36 files changed
+714 -676

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ const ajv = new Ajv({
* @returns Validator for the schema.
*/
export function compile<T>(schema: JSONSchemaType<T>) {
if (typeof global !== "object" || !global.lazySchemaCompilation) {
if (typeof global !== "object" || !(global as any).lazySchemaCompilation) {
return ajv.compile<T>(schema);
}