From 8e070d6858f0d3fae72d5e26f57c23128bced4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Fri, 15 Oct 2021 11:29:41 +0200 Subject: [PATCH] influxdb: config page: typescript-fix for strict-mode (#40465) --- public/app/plugins/datasource/influxdb/types.ts | 4 ++-- scripts/ci-check-strict.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/influxdb/types.ts b/public/app/plugins/datasource/influxdb/types.ts index e05c059e54b..8eb1ef59408 100644 --- a/public/app/plugins/datasource/influxdb/types.ts +++ b/public/app/plugins/datasource/influxdb/types.ts @@ -8,8 +8,8 @@ export enum InfluxVersion { export interface InfluxOptions extends DataSourceJsonData { version?: InfluxVersion; - timeInterval: string; - httpMode: string; + timeInterval?: string; + httpMode?: string; // With Flux organization?: string; diff --git a/scripts/ci-check-strict.sh b/scripts/ci-check-strict.sh index 1d55ae0a3b1..b5cc40e8418 100755 --- a/scripts/ci-check-strict.sh +++ b/scripts/ci-check-strict.sh @@ -3,7 +3,7 @@ set -e echo -e "Collecting code stats (typescript errors & more)" -ERROR_COUNT_LIMIT=24 +ERROR_COUNT_LIMIT=19 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