Skip to content

Commit

Permalink
fix(TS): revert changes in typings index.d.ts (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
silviuaavram authored Aug 5, 2021
1 parent 9df96b6 commit c268449
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "downshift",
"version": "6.1.5-alpha.0",
"version": "0.0.0-semantically-released",
"description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
"main": "dist/downshift.cjs.js",
"react-native": "dist/downshift.native.cjs.js",
Expand Down
13 changes: 11 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as React from 'react'

export {A11yStatusMessageOptions} from '../src/types'

type Callback = () => void

export interface DownshiftState<Item> {
Expand Down Expand Up @@ -86,6 +84,17 @@ export interface Environment {
document: Document
}

export interface A11yStatusMessageOptions<Item> {
highlightedIndex: number | null
inputValue: string
isOpen: boolean
itemToString: (item: Item | null) => string
previousResultCount: number
resultCount: number
highlightedItem: Item
selectedItem: Item | null
}

export interface StateChangeOptions<Item>
extends Partial<DownshiftState<Item>> {
type: StateChangeTypes
Expand Down

0 comments on commit c268449

Please sign in to comment.