+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "onUpdateDatasourceOption"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## onUpdateDatasourceOption variable
### onUpdateDatasourceOption variable
Signature
```typescript
onUpdateDatasourceOption: (props: DataSourcePluginOptionsEditorProps, key: keyof DataSourceSettings) => (event: React.SyntheticEvent) => void
```
Import
```typescript
import { onUpdateDatasourceOption } from '@grafana/data';
```