downshift-js / downshift

🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.

Home Page:http://downshift-js.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors in `typings/index.d.ts`

akheron opened this issue · comments

  • downshift version: 9.0.1
  • node version: irrelevant
  • npm (or yarn) version: irrelevant

Relevant code or config

typings/index.d.ts

What you did:

Updated downshift to v9.0.1

What happened:

It didn't pass typescript type checking.

Reproduction repository:

Problem description:

Two lines in typings/index.d.ts are invalid and don't pass Typescript's typecheck. There's no type index.

highlightedIndex: index

highlightedIndex: index

Suggested solution:

Change index to number or whatever is the correct type here.