+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "PanelMigrationHandler"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## PanelMigrationHandler type
### PanelMigrationHandler type
Called when a panel is first loaded with current panel model
Signature
```typescript
export declare type PanelMigrationHandler = (panel: PanelModel) => Partial;
```
Import
```typescript
import { PanelMigrationHandler } from '@grafana/data';
```