Chore: More TypeScript strict fixes (#39300)
* Chore: More TypeScript strict fixes * Chore: Use filter instead of reduce to fix TypeScript error * Chore: Retype AzureResultFormat as string * Chore: Account for getBlocks() poor typings of reduce * Chore: Need to explicitly check for undefined here since '' is falsey
This commit is contained in:
@@ -3,7 +3,7 @@ set -e
|
||||
|
||||
echo -e "Collecting code stats (typescript errors & more)"
|
||||
|
||||
ERROR_COUNT_LIMIT=46
|
||||
ERROR_COUNT_LIMIT=41
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user