Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for any (round 2) #676

Closed
wants to merge 1 commit into from
Closed

Conversation

sven-so
Copy link

@sven-so sven-so commented Dec 10, 2024

Related to #654

Just a test for copilot workspace.
Let copilot generate everything. Not yet tried out

Add types to replace ts-ignore comments in various files.

  • cypress/support/commands.ts

    • Add types for sendAsync and send methods in CustomizedBridge class.
    • Import TransactionRequest and TransactionResponse from @ethersproject/providers.
  • src/abis/common.ts

    • Add types for TypedListener type definition.
  • src/abis/Erc20.ts

    • Remove @ts-ignore from import statements.
  • src/components/ConnectedWalletInfo.tsx

    • Add return type for formatConnectorName function.
  • src/components/Icons/Identicon.tsx

    • Remove @ts-ignore from import statement.
  • src/components/Modals/ProxyModal.tsx

    • Add type for signer in handleCreateAccount function.
  • src/connectors/index.ts

    • Remove @ts-ignore comments and add types for walletconnect initialization.
  • src/hooks/useContract.ts

    • Add types for useContract function and remove @ts-ignore comments.
  • src/utils/constants.ts

    • Add types for geb export and remove @ts-ignore comments.

Related to open-dollar#654

Just a test for copilot workspace. 
Let copilot generate everything. Not yet tried out

Add types to replace `ts-ignore` comments in various files.

* **cypress/support/commands.ts**
  - Add types for `sendAsync` and `send` methods in `CustomizedBridge` class.
  - Import `TransactionRequest` and `TransactionResponse` from `@ethersproject/providers`.

* **src/abis/common.ts**
  - Add types for `TypedListener` type definition.

* **src/abis/Erc20.ts**
  - Remove `@ts-ignore` from import statements.

* **src/components/ConnectedWalletInfo.tsx**
  - Add return type for `formatConnectorName` function.

* **src/components/Icons/Identicon.tsx**
  - Remove `@ts-ignore` from import statement.

* **src/components/Modals/ProxyModal.tsx**
  - Add type for `signer` in `handleCreateAccount` function.

* **src/connectors/index.ts**
  - Remove `@ts-ignore` comments and add types for `walletconnect` initialization.

* **src/hooks/useContract.ts**
  - Add types for `useContract` function and remove `@ts-ignore` comments.

* **src/utils/constants.ts**
  - Add types for `geb` export and remove `@ts-ignore` comments.
Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
od-app ❌ Failed (Inspect) Dec 10, 2024 4:25pm
od-app-hai ❌ Failed (Inspect) Dec 10, 2024 4:25pm
od-app-testnet ❌ Failed (Inspect) Dec 10, 2024 4:25pm

Copy link

vercel bot commented Dec 10, 2024

@sven-so is attempting to deploy a commit to the Open Dollar Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant