export const transformWelcome = ( document ) => { const images = [ ... document . querySelectorAll ( 'img[src="/img/app/welcome_lock.gif"]' ) ] as HTMLImageElement [ ] ; if ( images . length > 0 ) { images . forEach ( ( image ) => { image . src = '/assets/img/emails/welcome_lock.gif' ; } ) ; } } ;