import { parsePage } from '@weco/common/services/prismic/pages' ; import { Project as DeprecatedProject } from '@weco/common/model/projects' ; import { Project } from '../../../types/projects' ; import { ProjectPrismicDocument } from '../types/projects' ; export function transformProject ( document ) { const project = parsePage ( document ) ; return { ... project , prismicDocument : document , } ; }