import { PanelModel } from '@grafana/data' ; import { ClockOptions , ClockRefresh } from './types' ; export const clockMigrationHandler = ( panel ) : Partial < ClockOptions > => { const options = panel . options || { } ; if ( options . refreshSettings ?. syncWithDashboard ) { options . refresh = ClockRefresh . dashboard ; } else if ( ( panel as any ) . refreshSettings ?. syncWithDashboard ) { options . refresh = ClockRefresh . dashboard ; } return options ; } ;