We want to use npm run ts:check in the Makefile, but first we must resolve the errors. This PR has five commits:
The process.env object is created dynamically, so ignore errors for undefined values such as EXPO_PUBLIC_GNO_REMOTE.
In types.ts, add NetworkMetainfo and GnoAccount. Correct the import to use @gno/types.
In transport_web, it complains that "Could not find a declaration file" for imported packages react-native-polyfill-globals and react-native-fetch-api. We can't change the imported packages, so ignore these errors.
In transport_web, add the "any" declaration to forEach((value:any, key:any).
Now that the errors are fixed, we can update the 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.
We want to use
npm run ts:check
in the Makefile, but first we must resolve the errors. This PR has five commits:process.env
object is created dynamically, so ignore errors for undefined values such asEXPO_PUBLIC_GNO_REMOTE
.NetworkMetainfo
andGnoAccount
. Correct the import to use@gno/types
.forEach((value:any, key:any)
.npm run ts:check
. Add this as a dependency to the node_modules target, which is used by all the others.