import { SanityInputNode , SanityNode } from '../types/gatsby' ; export const removeGatsbyInternalProps = ( node ) : SanityInputNode => { if ( ! node || typeof node . internal === 'undefined' ) { return node ; } const { mediaType , type , contentDigest } = node . internal ; return { ... node , internal : { mediaType , type , contentDigest , } , } ; } ;