Skip to content

convert donation-examples to ts - #25

Open
Amira1502 wants to merge 3 commits into
near-examples:mainfrom
Amira1502:convert-to-ts
Open

convert donation-examples to ts#25
Amira1502 wants to merge 3 commits into
near-examples:mainfrom
Amira1502:convert-to-ts

Conversation

@Amira1502

@Amira1502 Amira1502 commented Sep 30, 2025

Copy link
Copy Markdown
Contributor

Summary
This PR converts the entire hello-near-examples frontend from JavaScript to TypeScript. All pages, components, and wallet integrations have been updated to use the new near-selector package instead of wallet-selector.

Changes

  • Renamed .js files to .ts or .tsx.
  • Added TypeScript types for components, pages, and props.
  • Added declarations.d.ts for SVG imports.
  • Updated wallet/web3modal files to include proper TypeScript interfaces.
  • Updated _app.tsx and index.tsx to comply with TypeScript and Next.js requirements.
  • Removed dependencies: wallet-selector, viem, wagmi, and reown.
  • Udated wallet connection logic in all examples to use near-selector.
  • Updated TypeScript types and hooks to match the near-selector API.
  • Removed the old wallet folder.

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.

3 participants