+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "updateDatasourcePluginOption"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## updateDatasourcePluginOption() function
### updateDatasourcePluginOption() function
Signature
```typescript
export declare function updateDatasourcePluginOption(props: DataSourcePluginOptionsEditorProps, key: keyof DataSourceSettings, val: any): void;
```
Import
```typescript
import { updateDatasourcePluginOption } from '@grafana/data';
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| props | DataSourcePluginOptionsEditorProps
| |
| key | keyof DataSourceSettings
| |
| val | any
| |
Returns:
`void`