Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typing of getCredentials/updateCredentials #530

Closed
kostrse opened this issue Jan 3, 2023 · 1 comment
Closed

Fix typing of getCredentials/updateCredentials #530

kostrse opened this issue Jan 3, 2023 · 1 comment

Comments

@kostrse
Copy link
Contributor

kostrse commented Jan 3, 2023

Currently, src/components/ConfigEditor/AzureCredentialsConfig.ts uses type DataSourceSettings<any, any> for datasource options.

The typing needs to be reviewed, to avoid usage of any.

It's possible that typing of DataSourceJsonData and S type parameters of DataSourceSettings in @grafana/data is inaccurate.

JsonData and SecureJsonData are property bags and should allow random key/value access but they are not typed as such.

Original discussion here:
#529 (comment)

@aangelisc
Copy link
Contributor

Closing this as this issue is more related to the underlying Grafana types than the data source specifically. We're also planning on rectifying this via the Azure React SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants