mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 14:25:17 +00:00
Applied changes to solve several issues about typescript strict mode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user