Skip to content

Add TypeScript support with type definitions for contracts#173

Merged
Mosas2000 merged 2 commits intomainfrom
feature/typescript-frontend-setup
Feb 26, 2026
Merged

Add TypeScript support with type definitions for contracts#173
Mosas2000 merged 2 commits intomainfrom
feature/typescript-frontend-setup

Conversation

@Mosas2000
Copy link
Copy Markdown
Owner

Closes #60

Sets up TypeScript infrastructure for gradual migration of the frontend codebase.

Changes:

  • Add typescript, @types/react, @types/react-dom as dev dependencies
  • Create tsconfig.json with strict mode and allowJs for incremental adoption
  • Add contract type definitions (TipEvent, UserStats, PlatformStats, PendingTransaction, etc.)
  • Add Vite environment variable types (vite-env.d.ts)
  • Add type-check npm script for CI integration

Existing .jsx files continue to work. New files can be written in .tsx and will be type-checked.

Add tsconfig.json with strict mode, allowJs for incremental adoption.
Create contract type definitions for tip events, user stats, platform
stats, transaction types, and component props. Add vite-env.d.ts for
environment variable types. Add type-check npm script.
@Mosas2000 Mosas2000 merged commit 4f09c89 into main Feb 26, 2026
1 of 3 checks passed
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.

No proper TypeScript support in the frontend project

1 participant