To produce the bug
Instead of string, supply emptyMessage (in SelectSearchProps) with a function returning a string.
This will make typescript compiler complains about incompatible type.
Based on README.mdemptyMessage should accepts parameter a string or a function returning a string.
Solution
I will create a PR to add a function in type definition file :
emptyMessage? : string|(()=>string)
Version : 3.0.6
To produce the bug Instead of
string
, supplyemptyMessage
(inSelectSearchProps
) with a function returning a string. This will maketypescript
compiler complains about incompatible type.Based on
README.md
emptyMessage
should accepts parameter a string or a function returning a string.Solution I will create a PR to add a function in type definition file :
emptyMessage? : string|(()=>string)
Thanks.