Typescript support/quesiton #765
-
Trying to use the custom render in a typescript project and while it works, typescript is giving me errors like the following and i'd love to be able to get these fixed
Typescript is still pretty new to me so i could be missing something but here is an example that shows these typescript errors: https://codesandbox.io/s/elegant-mopsa-f8qe4?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
well i figured it out, i'll leave this here just incase anyone else gets stuck like me i had the |
Beta Was this translation helpful? Give feedback.
well i figured it out, i'll leave this here just incase anyone else gets stuck like me
i had the
createAutocomplete
method incorrectly typed ascreateAutocomplete<AlgoliaAutocompleteItem>
vscreateAutocomplete< AlgoliaAutocompleteItem, React.BaseSyntheticEvent, React.MouseEvent, React.KeyboardEvent >