Elasticsearch: Fix some strict typescript errors (#40517)

* Elasticsearch: Fix some strict typescript errors

* Fix tests

* Reduce strict error count

* actually fix tests
This commit is contained in:
Giordano Ricci
2021-10-15 16:20:20 +01:00
committed by GitHub
parent 73ac9c2717
commit 63fc12d186
5 changed files with 34 additions and 43 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ set -e
echo -e "Collecting code stats (typescript errors & more)"
ERROR_COUNT_LIMIT=19
ERROR_COUNT_LIMIT=17
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then