import { parseArticleDoc } from '@weco/common/services/prismic/articles' ; import { Article as DeprecatedArticle } from '@weco/common/model/articles' ; import { Article } from '../../../types/articles' ; import { ArticlePrismicDocument } from '../types/articles' ; export function transformArticle ( document ) { const article = parseArticleDoc ( document ) ; return { ... article , prismicDocument : document , } ; }