influxdb: config page: typescript-fix for strict-mode (#40465)

This commit is contained in:
Gábor Farkas
2021-10-15 11:29:41 +02:00
committed by GitHub
parent 374041148d
commit 8e070d6858
2 changed files with 3 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ export enum InfluxVersion {
export interface InfluxOptions extends DataSourceJsonData { export interface InfluxOptions extends DataSourceJsonData {
version?: InfluxVersion; version?: InfluxVersion;
timeInterval: string; timeInterval?: string;
httpMode: string; httpMode?: string;
// With Flux // With Flux
organization?: string; organization?: string;

View File

@@ -3,7 +3,7 @@ set -e
echo -e "Collecting code stats (typescript errors & more)" 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+)')" 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 if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then