Applied changes to solve several issues about typescript strict mode

This commit is contained in:
Alexander Cerutti
2021-12-23 19:46:29 +01:00
parent ef20bc5a44
commit cf8a467266
6 changed files with 56 additions and 38 deletions

View File

@@ -229,7 +229,7 @@ export function filterValid<T extends Object>(
return [];
}
return source.reduce((acc, current) => {
return source.reduce<T[]>((acc, current) => {
try {
return [...acc, validate(schema, current)];
} catch (err) {