import { parseSeason } from '@weco/common/services/prismic/seasons' ; import { Season } from '../../../types/seasons' ; import { SeasonPrismicDocument } from '../types/seasons' ; export function transformSeason ( document ) { const season = parseSeason ( document as any ) ; return { ... season , prismicDocument : document , } ; }