fix(review-blocks): annotate share() param to satisfy astro check
Task 11 reported `pnpm run verify` green, which was true, but the brief asks for `pnpm run gate` -- and the gate also runs astro check, which failed on ts(7006) implicit any.
This commit is contained in:
@@ -33,7 +33,7 @@ interface Props {
|
||||
|
||||
const { skillId, tally, youVote, unavailable = false } = Astro.props;
|
||||
const total = (tally.original || 0) + (tally.improved || 0);
|
||||
const share = (count) => (total ? Math.round((count / total) * 100) : 0);
|
||||
const share = (count: number) => (total ? Math.round((count / total) * 100) : 0);
|
||||
---
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user