Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tbleckert committed Jun 22, 2022
1 parent 705e009 commit e7d470d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SelectSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ SelectSearch.propTypes = {
renderGroupHeader: PropTypes.func,
renderValue: PropTypes.func,
emptyMessage: PropTypes.oneOfType([
PropTypes.string,
PropTypes.node,
PropTypes.func,
]),

Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type SelectSearchProps = {
getOptions?: (query:string) => Promise<SelectSearchOption[]>
debounce?: number
ref?:Ref<Component>
emptyMessage?:string|(() =>string)
emptyMessage?:ReactNode|(() => ReactNode)
}

export const SelectSearch:FunctionComponent<SelectSearchProps>
Expand Down

2 comments on commit e7d470d

@vercel
Copy link

@vercel vercel bot commented on e7d470d Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tolunayozdemir
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can close issue #226

Please sign in to comment.