Skip to content

Commit

Permalink
ignore protocol-validation ts errors for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Nov 29, 2024
1 parent 5ffbde1 commit 29bf413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/protocol-validation/scripts/compileSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"env.tjs"
],
"exclude": [
"node_modules"
"node_modules",
"lib/protocol-validation/**/*",
]
}

0 comments on commit 29bf413

Please sign in to comment.