Is there is a typescript version of '@elastic/react-search-ui'?

Hi,

I'm trying to use '@elastic/react-search-ui' in a react typescript repo, but i can't find the @types for this repo in npm .

I also can't find @types for '@elastic/react-search-ui-views' & '@elastic/search-ui-app-search-connector'.

How can i use '@elastic/react-search-ui' & '@elastic/react-search-ui-views' & '@elastic/search-ui-app-search-connector' in a react typescript repo ?

We desperately need types for these projects, but we currently don't have any.

I believe you can simply use the following on your imports to work around it for now.

// @ts-expect-error
import { Paging, ResultsPerPage } from '@elastic/react-search-ui';

Thank you so much @JasonStoltz

Well, this didn't work, but what i did is adding a new file "globals.d.ts" in /src, and add the following in it:

declare module '@elastic/react-search-ui'
declare module '@elastic/react-search-ui-views'
declare module '@elastic/search-ui-app-search-connector'

And it stop complaining now

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.