> 1 | import type { ReduceOptions } from './types'; | ^ 2 | export declare const reduceGroupedOptions: ReduceOptions<any, any, any>;Obtener este error en TypeScript al usar reaccionar seleccionar paginar asíncrono Usar este formato.
<AsyncPaginate value={value} loadOptions={loadOptions} onChange={setValue} />opción de carga
async function loadOptions(search: string, loadedOptions: any) { const response = await fetch(`/awesome-api-url/?search=${search}&offset=${loadedOptions.length}`); const responseJSON = await response.json(); return { options: responseJSON.results, hasMore: responseJSON.has_more, }; }