import { parsePage } from '@weco/common/services/prismic/pages' ; import { Guide as DeprecatedGuide } from '@weco/common/model/guides' ; import { Guide } from '../../../types/guides' ; import { GuidePrismicDocument } from '../types/guides' ; export function transformGuide ( document ) { const guide = parsePage ( document ) ; return { ... guide , prismicDocument : document , } ; }