import * as TaskEither from 'fp-ts/lib/TaskEither' ; import type { TransformRawDocs } from '../types' ; import type { SavedObjectsRawDoc } from '../../serialization' ; import { DocumentsTransformFailed , DocumentsTransformSuccess , } from '../../migrations/core/migrate_raw_docs' ; internal export interface TransformDocsParams { transformRawDocs : TransformRawDocs ; outdatedDocuments : SavedObjectsRawDoc [ ] ; } export const transformDocs = ( { transformRawDocs , outdatedDocuments , } ) : TaskEither . TaskEither < DocumentsTransformFailed , DocumentsTransformSuccess > => transformRawDocs ( outdatedDocuments ) ;