const ID3Writer = require ( 'browser-id3-writer' ) ; export type IID3Writer = typeof ID3Writer ; export const ID3WriterService = { addTag ( writer ) { writer . addTag ( ) ; return writer ; } , createWriter ( arrayBuffer ) { return new ID3Writer ( arrayBuffer ) ; } , getURL ( writer ) { return writer . getURL ( ) ; } , setFrame ( writer , frame , value ) { if ( value !== null && value !== undefined ) { writer . setFrame ( frame , value ) ; } return writer ; } , } ;