Skip to content

Commit 0617caf

Browse files
committed
Improove flow
1 parent d71f56a commit 0617caf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/core/filters/filter-group.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type State = {
1212
};
1313

1414
type DefaultProps = {
15-
renderCount: Function,
15+
renderCount: (count: number) => string,
1616
};
1717

1818
export default class FilterGroup extends Component {

src/components/core/filters/types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type FilterTypeProps = {
1616
onSelectFacet?: Function,
1717
term?: string,
1818
values?: Array<FilterValue>,
19-
renderCount: Function,
19+
renderCount: (count: number) => string,
2020
};
2121

2222

@@ -28,5 +28,5 @@ export type FilterGroupProps = {
2828
onClearFacet?: Function,
2929
onSelectFacet?: Function,
3030
initiallyExpanded?: boolean,
31-
renderCount?: Function,
31+
renderCount?: (count: number) => string,
3232
};

0 commit comments

Comments
 (0)