Skip to content

Commit

Permalink
Fixed the TS defs for EuiFilterSelectItem (elastic#2192)
Browse files Browse the repository at this point in the history
The hand-rolled TS defs for EuiFilterSelectItem didn't work, so I
applied the fix that I found worked for me.
  • Loading branch information
pugnascotia authored and thompsongl committed Sep 10, 2019
1 parent 4ccbc81 commit 894056e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Remove exported TypeScript type and interface exports from built artifacts when they originate from `node_modules` ([#2191](https://github.com/elastic/eui/pull/2191))
- Fixed `EuiBadge` truncation in IE and for the global filters pattern ([#2194](https://github.com/elastic/eui/pull/2194))
- Fixed alignment of long titles in `EuiStep` ([#2186](https://github.com/elastic/eui/pull/2186))
- Fixed the TS defs for EuiFilterSelectItem ([#2192](https://github.com/elastic/eui/pull/2192))

## [`13.1.1`](https://github.com/elastic/eui/tree/v13.1.1)

Expand Down
7 changes: 5 additions & 2 deletions src/components/filter_group/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ declare module '@elastic/eui' {
checked?: FilterChecked;
}

export const EuiFilterSelectItem: Component<
// eslint-disable-next-line react/prefer-stateless-function
export class EuiFilterSelectItem extends Component<
CommonProps &
ButtonHTMLAttributes<HTMLButtonElement> &
EuiFilterSelectItemProps
>;
> {
render: () => JSX.Element;
}
}

0 comments on commit 894056e

Please sign in to comment.