mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Use strict type checking
This commit is contained in:
1 parent
2ca8e69025
commit
a66e930997
36 files changed
+714
-676
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user