const contentTypes = [ 'articles' , 'books' , 'event-series' , 'events' , 'exhibitions' , 'guides' , 'pages' , 'projects' , 'seasons' , 'series' , ] as const ; export type ContentType = typeof contentTypes [ number ] ; function isContentType ( type ) { return typeof type && contentTypes . includes ( type ) ; } /**
 * we use null as that's what prismic expects
 *  https function linkResolver ( doc ) { const { id , type } = doc ; if ( type === 'webcomics' ) return `/articles/${ id }` ; if ( type === 'webcomic-series' ) return `/series/${ id }` ; if ( isContentType ( type ) ) { return `/${ type }/${ id }` ; } return undefined ; } export default linkResolver ;