import { MigrateFunction } from '../../../../src/plugins/kibana_utils/common/persistable_state' ; import { SimpleEmbeddableInput } from './migrations_embeddable_factory' ; import { EmbeddableInput } from '../../../../src/plugins/embeddable/common' ; type SimpleEmbeddableInput_pre7_3_0 = EmbeddableInput & { number : number ; } ; type SimpleEmbeddable730MigrateFn = MigrateFunction < SimpleEmbeddableInput_pre7_3_0 , SimpleEmbeddableInput > ; const defaultTitle = 'no title' ; export const migration730 = ( state ) => { const newState = { ... state , title : defaultTitle , value : state . number } ; return newState ; } ;