Chore: Reduce strict error in DataSourceHttpSettings.onChange callback (#40497)

* Reduce strict TS errors

* Update ERROR_COUNT_LIMIT after merging from main

* Update number of errors
This commit is contained in:
Piotr Jamróz 2021-10-18 10:40:43 +02:00 committed by GitHub
parent 6201b5b1d9
commit 2de769420e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -6,11 +6,11 @@ export interface AzureAuthSettings {
azureSettingsUI?: React.ComponentType<HttpSettingsBaseProps>;
}
export interface HttpSettingsBaseProps {
export interface HttpSettingsBaseProps<JSONData = any, SecureJSONData = any> {
/** The configuration object of the data source */
dataSourceConfig: DataSourceSettings<any, any>;
dataSourceConfig: DataSourceSettings<JSONData, SecureJSONData>;
/** Callback for handling changes to the configuration object */
onChange: (config: DataSourceSettings) => void;
onChange: (config: DataSourceSettings<JSONData, SecureJSONData>) => void;
/** Show the Forward OAuth identity option */
showForwardOAuthIdentityOption?: boolean;
}

View File

@ -3,7 +3,7 @@ set -e
echo -e "Collecting code stats (typescript errors & more)"
ERROR_COUNT_LIMIT=17
ERROR_COUNT_LIMIT=13
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