Skip to content

Commit

Permalink
Fix TS defs
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Apr 29, 2019
1 parent b378301 commit 878346e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/components/filter_group/filter_group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ export type EuiFilterGroupProps = HTMLAttributes<HTMLDivElement> &
fullWidth?: boolean;
};

export const EuiFilterGroup: FunctionComponent<
CommonProps & HTMLAttributes<HTMLDivElement> & EuiFilterGroupProps
> = ({ children, className, fullWidth = false, ...rest }) => {
export const EuiFilterGroup: FunctionComponent<EuiFilterGroupProps> = ({
children,
className,
fullWidth = false,
...rest
}) => {
const classes = classNames(
'euiFilterGroup',
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/filter_group/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare module '@elastic/eui' {
*
* @see './filter_group.js'
*/
export const EuiFilterGroup: EuiFilterGroupProps;
export const EuiFilterGroup: FunctionComponent<EuiFilterGroupProps>;

/**
* Filter select item type defs
Expand Down

0 comments on commit 878346e

Please sign in to comment.