Skip to content

Conversation

@Durganjali-sidda
Copy link

Summary

This PR fixes a TypeScript linting issue in CountryMap.tsx.

Problem

Previously, the markerStyle.initial object was type-cast as any:

initial: { fill: "#465FFF", r: 4, } as any This caused the following error in VSCode: Unexpected any. Specify a different type. (eslint@typescript-eslint/no-explicit-any) Solution: Replaced the any type assertion with a more specific type: } as { fill: string; r: number } This removes the linting error while preserving correct typing. Testing: Verified project builds without TypeScript errors Verified CountryMap renders as expected with custom marker styling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant