• Robert Knight's avatar
    Modernize `SearchClient` code and improve docs · d95b36f3
    Robert Knight authored
    Make the code easier to follow and update by modernizing it to ES6+ and
    linking to relevant Hypothesis API documentation.
    
     - Replace `self` with arrow-functions + `this`
     - Replace promise chains with async/await
     - Document the type of the `query` param to search requests
     - Add links to relevant Hypothesis API documentation
    d95b36f3
search-client.js 5.64 KB