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

**URL:** <https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 17, 2021, 12:18am UTC](https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375 "2021-11-17T00:18:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmedTohamy01](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AhmedTohamy01](https://discuss.elastic.co/u/AhmedTohamy01)\
**Post date:** [November 17, 2021, 12:18am UTC](https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375/1 "2021-11-17T00:18:27Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [November 17, 2021, 1:16pm UTC](https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375/2 "2021-11-17T13:16:11Z")

</div>

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.

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

```

---

<div class="post-metadata">

**Author:** ![AhmedTohamy01](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AhmedTohamy01](https://discuss.elastic.co/u/AhmedTohamy01)\
**Post date:** [November 17, 2021, 6:01pm UTC](https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375/3 "2021-11-17T18:01:26Z")

</div>

Thank you so much @JasonStoltz

---

<div class="post-metadata">

**Author:** ![AhmedTohamy01](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AhmedTohamy01](https://discuss.elastic.co/u/AhmedTohamy01)\
**Post date:** [November 17, 2021, 6:19pm UTC](https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375/4 "2021-11-17T18:19:58Z")

</div>

> [@JasonStoltz](#):
>
> ```auto
> // @ts-expect-error
> import { Paging, ResultsPerPage } from '@elastic/react-search-ui';
> 
> ```

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 15, 2021, 6:20pm UTC](https://discuss.elastic.co/t/is-there-is-a-typescript-version-of-elastic-react-search-ui/289375/5 "2021-12-15T18:20:52Z")

</div>

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