diff --git a/lib/protocol-validation/scripts/compileSchemas.ts b/lib/protocol-validation/scripts/compileSchemas.ts index 0cb4d22c..028bf42f 100644 --- a/lib/protocol-validation/scripts/compileSchemas.ts +++ b/lib/protocol-validation/scripts/compileSchemas.ts @@ -23,11 +23,11 @@ const asVariableName = (schemaName: string) => `version_${schemaName.replace(/\./g, '_')}`; const asIntName = (schemaVersion: string | number) => { - if (isNaN(parseInt(schemaVersion, 10))) { + if (isNaN(parseInt(schemaVersion as string, 10))) { throw Error('Schema version could not be converted to integer'); } - return parseInt(schemaVersion, 10); + return parseInt(schemaVersion as string, 10); }; // get schemas, diff --git a/tsconfig.json b/tsconfig.json index 520170b9..107888e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -48,6 +48,7 @@ "env.tjs" ], "exclude": [ - "node_modules" + "node_modules", + "lib/protocol-validation/**/*", ] } \ No newline at end of file