-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: gnoboard: Resolve ts:check errors, put in Makefile (#182)
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](b586114) 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. --------- Signed-off-by: Jeff Thompson <[email protected]>
- Loading branch information
Showing
7 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.../js/expo/gnoboard/src/components/common/side-menu-account-item/side-menu-account-item.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters