diff --git a/src/Rate.tsx b/src/Rate.tsx index 9149375..5048cc1 100644 --- a/src/Rate.tsx +++ b/src/Rate.tsx @@ -19,7 +19,7 @@ export interface RateProps { onChange?: (value: number) => void; onHoverChange?: (value: number) => void; className?: string; - character?: (props: StarProps) => React.ReactNode | React.ReactNode; + character?: React.ReactNode; characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode; tabIndex?: number; onFocus?: () => void; diff --git a/src/Star.tsx b/src/Star.tsx index e11dd96..f889ebc 100644 --- a/src/Star.tsx +++ b/src/Star.tsx @@ -11,7 +11,7 @@ export interface StarProps { e: React.MouseEvent | React.KeyboardEvent, index: number, ) => void; - character?: (props: StarProps) => React.ReactNode | React.ReactNode; + character?: React.ReactNode; characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode; focused?: boolean; count?: number;