+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "PanelTypeChangedHandler"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
draft = true
+++

## PanelTypeChangedHandler type

### PanelTypeChangedHandler type

Called before a panel is initialized

<b>Signature</b>

```typescript
export declare type PanelTypeChangedHandler<TOptions = any> = (options: Partial<TOptions>, prevPluginId: string, prevOptions: any) => Partial<TOptions>;
```
<b>Import</b>

```typescript
import { PanelTypeChangedHandler } from '@grafana/data';
```
