refactor(types): drop 127 unnecessary as any casts (#210)
Removed every `as any` in src/, then restored only the ones tsc still needs: 163 → 36. 112 were in lotus-terminal.css.ts (`'… !important' as any` etc. — vanilla-extract's style types accept these strings as-is), so its file-wide eslint-disable goes too. The casts were type-only, so emitted code and generated CSS are unchanged. eslint warnings 49 → 46; the ratchet is tightened to match. tsc clean; 1202 unit tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4a9823890b
commit
f3722ae859
@@ -291,7 +291,7 @@ export function ClientRoot({ children }: ClientRootProps) {
|
||||
Failed to sync with your homeserver. Check your connection and try again.
|
||||
</Text>
|
||||
)}
|
||||
{('error' in loadState ? (loadState as any).error?.message : undefined) !==
|
||||
{('error' in loadState ? loadState.error?.message : undefined) !==
|
||||
IDB_VERSION_CONFLICT && (
|
||||
<Button variant="Critical" onClick={mx ? () => startMatrix(mx) : loadMatrix}>
|
||||
<Text as="span" size="B400">
|
||||
|
||||
Reference in New Issue
Block a user