Sweep small typecheck nits: union expansions + React 19 JSX + extra arg

- ColorVariantType missed the 5 outline-* bootstrap variants
  GroupForumThreadView and GroupForumThreadListView already use; adding
  them clears 4 errors.
- React 19 moved the JSX namespace out of the global scope into the
  react module; WiredNeighborhoodSelectorView referenced JSX.Element
  without importing it.
- showConfirm() takes 7 args; the chat link confirm in useOnClickChat
  passed an 8th 'link' icon arg left over from an older signature.
- LocalizeText placeholder array is string[]; UserContainerView passed
  userProfile.friendsCount (number) — call .toString().

Net tsgo error count: 97 -> 90.
This commit is contained in:
simoleo89
2026-05-11 20:55:00 +02:00
parent 96b61ff67b
commit feba672d08
4 changed files with 4 additions and 4 deletions
@@ -83,7 +83,7 @@ export const UserContainerView: FC<{
__html: LocalizeText(
'extendedprofile.friends.count',
['count'],
[userProfile.friendsCount]
[userProfile.friendsCount.toString()]
)
}}
/>