Skip to content

Commit

Permalink
fix(TS): [index.d.ts] allow passing null to control props (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
franklixuefei authored and Kent C. Dodds committed Jun 20, 2018
1 parent 6edb5a0 commit 00e736f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions typings/index.d.ts
Expand Up @@ -6,7 +6,7 @@ export interface DownshiftState<Item> {
highlightedIndex: number | null
inputValue: string | null
isOpen: boolean
selectedItem: Item
selectedItem: Item | null
}

export enum StateChangeTypes {
Expand Down Expand Up @@ -55,10 +55,10 @@ export interface DownshiftProps<Item> {
changes: StateChangeOptions<Item>,
) => Partial<StateChangeOptions<Item>>
itemCount?: number
highlightedIndex?: number
inputValue?: string
highlightedIndex?: number | null
inputValue?: string | null
isOpen?: boolean
selectedItem?: Item
selectedItem?: Item | null
children?: ChildrenFunction<Item>
id?: string
environment?: Environment
Expand Down

0 comments on commit 00e736f

Please sign in to comment.