import { RequestForm } from './web-client' ; export function convertToFormData ( form ) { const formData = new URLSearchParams ( ) ; for ( const [ key , value ] of Object . entries ( form ) ) { formData . append ( key , value + '' ) ; } return formData ; }