diff --git a/src/components/Typeahead/Typeahead.stories.tsx b/src/components/Typeahead/Typeahead.stories.tsx index 0a4372b8..4fc4765d 100644 --- a/src/components/Typeahead/Typeahead.stories.tsx +++ b/src/components/Typeahead/Typeahead.stories.tsx @@ -9,7 +9,7 @@ import Hint from '../Hint'; import Menu from '../Menu'; import MenuItem from '../MenuItem'; -import options from '../../tests/data'; +import options, { Option } from '../../tests/data'; import { noop } from '../../tests/helpers'; export default { @@ -122,16 +122,12 @@ CustomMenu.args = { renderMenu: (results, menuProps) => ( {/* Use `slice` to avoid mutating the original array */} - {results + {(results as Option[]) .slice() .reverse() .map((r, index) => ( - // @ts-ignore - { - // @ts-ignore - r.name - } + {r.name} ))}