I’m trying to write code to browse an index, specifically using the
browser.on event hooks.
It looks like, at least per the type files, that
browseAll is returning
Promise<Response>, causing an error because
on is not defined for
Promise. When I examine the JS version in the debugger, the type of
browser is actually being reported as
IndexBrowser. As far as I can tell,
IndexBrowser does not exist in the type definitions. It looks like the generated JS is the same as the example (formatting notwithstanding), so can I just suppress the errors and go on? Is this just a matter of the type definition not being correct?
algoliasearch package version is 3.30.0, and my
@types/algoliasearch package version is 3.27.8.