Skip to content

fix: remove all 20 @ts-nocheck suppressions, fix TypeScript errors properly#22

Open
DigitalBlueprint239 wants to merge 1 commit into
masterfrom
claude/fix-typescript-errors-rD5EA
Open

fix: remove all 20 @ts-nocheck suppressions, fix TypeScript errors properly#22
DigitalBlueprint239 wants to merge 1 commit into
masterfrom
claude/fix-typescript-errors-rD5EA

Conversation

@DigitalBlueprint239

Copy link
Copy Markdown
Owner

Remove @ts-nocheck from all active application files and fix the
underlying TypeScript errors with proper null guards and type annotations:

  • firestore.ts: Add getDb() null guard, type db/auth as nullable,
    fix all Firestore API calls with null checks
  • useAuth.tsx: Add getAuth_() null guard for Firebase Auth calls
  • useFirestore.ts: Fix recursive updatePlay shadowing bug
  • TeamContext.tsx: Add getDb()/requireCurrentUser() helpers
  • SmartPlaybook.tsx: Add full type definitions, type all callbacks,
    fix dead-code mode comparison bug
  • CanvasArea.tsx: Fix broken import path, type props properly
  • TouchOptimizedPlaybook.tsx: Fix GameContext fields, type callbacks

Create .d.ts declarations for 11 JS components used by TypeScript files.
Exclude 13 legacy orphaned files via tsconfig.json exclude array.
Fix VITE_ env var regression in react-app-env.d.ts (CRA uses REACT_APP_).
Fix NEXT_PUBLIC_ env vars in firebase.ts to REACT_APP_.
Update MASTER_TRACKER.md with session log and HIGH-006 resolution.

https://claude.ai/code/session_01YZvHkyUzRoa7fd1FfMm5dq

…operly

Remove @ts-nocheck from all active application files and fix the
underlying TypeScript errors with proper null guards and type annotations:

- firestore.ts: Add getDb() null guard, type db/auth as nullable,
  fix all Firestore API calls with null checks
- useAuth.tsx: Add getAuth_() null guard for Firebase Auth calls
- useFirestore.ts: Fix recursive updatePlay shadowing bug
- TeamContext.tsx: Add getDb()/requireCurrentUser() helpers
- SmartPlaybook.tsx: Add full type definitions, type all callbacks,
  fix dead-code mode comparison bug
- CanvasArea.tsx: Fix broken import path, type props properly
- TouchOptimizedPlaybook.tsx: Fix GameContext fields, type callbacks

Create .d.ts declarations for 11 JS components used by TypeScript files.
Exclude 13 legacy orphaned files via tsconfig.json exclude array.
Fix VITE_ env var regression in react-app-env.d.ts (CRA uses REACT_APP_).
Fix NEXT_PUBLIC_ env vars in firebase.ts to REACT_APP_.
Update MASTER_TRACKER.md with session log and HIGH-006 resolution.

https://claude.ai/code/session_01YZvHkyUzRoa7fd1FfMm5dq
@netlify

netlify Bot commented Mar 1, 2026

Copy link
Copy Markdown

Deploy Preview for magical-starlight-0c1207 failed.

Name Link
🔨 Latest commit eb4241e
🔍 Latest deploy log https://app.netlify.com/projects/magical-starlight-0c1207/deploys/69a383b06f0e9a0008cea387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants