import { SKLayer , Image } from '../types' ; param image param layer const parseImage = ( image , layer , type ) : Image => { if ( layer . _class === 'artboard' ) { image . value = layer . imageUrl ; } else if ( layer . imageUrl ) { if ( type === 'lowcode' ) { image . type = 'WBImage' ; } else { image . type = 'Image' ; } image . value = layer . imageUrl ; } return image ; } ; export default parseImage ;