+++
# -----------------------------------------------------------------------
# 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

<b>Signature</b>

```typescript
export declare function updateDatasourcePluginOption(props: DataSourcePluginOptionsEditorProps, key: keyof DataSourceSettings, val: any): void;
```
<b>Import</b>

```typescript
import { updateDatasourcePluginOption } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  props | <code>DataSourcePluginOptionsEditorProps</code> |  |
|  key | <code>keyof DataSourceSettings</code> |  |
|  val | <code>any</code> |  |

<b>Returns:</b>

`void`

