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

chore: gnoboard: Resolve ts:check errors, put in Makefile #182

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Sep 30, 2024

Similar to dSocial PR gnoverse/dsocial#132, we want to use npm run ts:check in the Makefile for gnoboard, but first we must resolve the errors. This PR has five commits:

  1. Add ts:check to package.json
  2. A previous commit changes gnoboard to use KeyInfo instead of the alias GnoAccount . It seems that this was missed in one file, so we make the same change.
  3. In the catch clause, we call GRPCError which expects ConnectError or null. But the error in the catch can be any type. So add an explicit check for instanceof ConnectError .
  4. The definition of NetworkList includes onNetworkChange, but ChangeNetwork.stories doesn't have it. However, onNetworkChange isn't used by the storybook, so we put a noop function.
  5. Now that the errors are fixed, we can update the gnoboard Makefile. Add a target ts_check to do npm run ts:check. Add this as a dependency to the node_modules target, which is used by all the others.

@jefft0 jefft0 requested a review from iuricmp September 30, 2024 09:44
@jefft0 jefft0 merged commit 642904f into gnolang:main Sep 30, 2024
@jefft0 jefft0 deleted the chore/resolve-ts-check-errors branch September 30, 2024 10:15
Copy link

🎉 This PR is included in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants