From 5b2e1e34939a16a0e661a63e15d5c4d5d8160458 Mon Sep 17 00:00:00 2001 From: Ssekandi Date: Fri, 24 Oct 2025 02:07:22 +0300 Subject: [PATCH] Update onFinishRating type annotation for clarity Improving typescript --- src/TapRating.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TapRating.tsx b/src/TapRating.tsx index ca010b7..19c7ec7 100644 --- a/src/TapRating.tsx +++ b/src/TapRating.tsx @@ -68,7 +68,7 @@ export type TapRatingProps = { /** * Callback method when the user finishes rating. Gives you the final rating value as a whole number */ - onFinishRating?: (number) => void; + onFinishRating?: (rating: number) => void; /** * Whether the rating can be modiefied by the user