diff --git a/package.json b/package.json index 569729e8734..f2e501809c2 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "ts-node": "^8.3.0", "tsconfig-paths": "^3.8.0", "tslint": "^5.20.0", - "typescript": "^3.5.3", + "typescript": "^3.7.3", "typescript-tslint-plugin": "^0.5.4" }, "dependencies": { diff --git a/packages/blockchain-api/package.json b/packages/blockchain-api/package.json index d6ad93b5723..d8ed27a330e 100644 --- a/packages/blockchain-api/package.json +++ b/packages/blockchain-api/package.json @@ -36,7 +36,7 @@ "@types/web3": "^1.0.18", "jest-fetch-mock": "^2.1.2", "tsc-watch": "^1.0.31", - "typescript": "^3.5.3" + "typescript": "^3.7.3" }, "resolutions": { "**/cross-fetch": "3.0.4" diff --git a/packages/celotool/src/cmds/deploy/upgrade/ethstats.ts b/packages/celotool/src/cmds/deploy/upgrade/ethstats.ts index cd7fa33222f..b127f4299f3 100644 --- a/packages/celotool/src/cmds/deploy/upgrade/ethstats.ts +++ b/packages/celotool/src/cmds/deploy/upgrade/ethstats.ts @@ -23,7 +23,7 @@ export const handler = async (argv: EthstatsArgv) => { await createClusterIfNotExists() await switchToClusterFromEnv() - if (argv.reset) { + if (argv.reset === true) { await removeHelmRelease(argv.celoEnv) await installHelmChart(argv.celoEnv) } else { diff --git a/packages/celotool/src/cmds/deploy/upgrade/leaderboard.ts b/packages/celotool/src/cmds/deploy/upgrade/leaderboard.ts index 059eea67fd0..376ba09030f 100644 --- a/packages/celotool/src/cmds/deploy/upgrade/leaderboard.ts +++ b/packages/celotool/src/cmds/deploy/upgrade/leaderboard.ts @@ -23,7 +23,7 @@ export const handler = async (argv: LeaderboardArgv) => { await createClusterIfNotExists() await switchToClusterFromEnv() - if (argv.reset) { + if (argv.reset === true) { await removeHelmRelease(argv.celoEnv) await installHelmChart(argv.celoEnv) } else { diff --git a/packages/celotool/src/cmds/deploy/upgrade/testnet.ts b/packages/celotool/src/cmds/deploy/upgrade/testnet.ts index 1cae9afa895..9a0df3bb5f9 100644 --- a/packages/celotool/src/cmds/deploy/upgrade/testnet.ts +++ b/packages/celotool/src/cmds/deploy/upgrade/testnet.ts @@ -31,7 +31,7 @@ export const handler = async (argv: TestnetArgv) => { await upgradeStaticIPs(argv.celoEnv) - if (argv.reset) { + if (argv.reset === true) { await resetAndUpgradeHelmChart(argv.celoEnv) await uploadGenesisBlockToGoogleStorage(argv.celoEnv) } else { diff --git a/packages/celotool/src/cmds/deploy/upgrade/vm-testnet.ts b/packages/celotool/src/cmds/deploy/upgrade/vm-testnet.ts index aaa1d69e04d..7f0b5721e9b 100644 --- a/packages/celotool/src/cmds/deploy/upgrade/vm-testnet.ts +++ b/packages/celotool/src/cmds/deploy/upgrade/vm-testnet.ts @@ -31,7 +31,7 @@ export const handler = async (argv: VmTestnetArgv) => { await switchToClusterFromEnv() let onDeployFailed = () => Promise.resolve() - if (argv.reset) { + if (argv.reset === true) { onDeployFailed = () => untaintTestnet(argv.celoEnv) await taintTestnet(argv.celoEnv) } diff --git a/packages/cli/package.json b/packages/cli/package.json index dccaa4b8449..bae8ef91cb4 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -67,7 +67,7 @@ "@types/web3": "^1.0.18", "globby": "^8", "prettier": "1.13.5", - "typescript": "^3.5.3" + "typescript": "^3.7.3" }, "files": [ "README.md", diff --git a/packages/notification-service/package.json b/packages/notification-service/package.json index bce9ae88696..642b629c631 100644 --- a/packages/notification-service/package.json +++ b/packages/notification-service/package.json @@ -39,7 +39,7 @@ "@types/node-fetch": "^2.1.2", "@types/utf8": "^2.1.6", "@types/web3": "^1.0.18", - "typescript": "^3.5.3" + "typescript": "^3.7.3" }, "engines": { "node": "10" diff --git a/packages/react-components/analytics/wrapper.tsx b/packages/react-components/analytics/wrapper.tsx index fedb2665d74..1cd99e41136 100644 --- a/packages/react-components/analytics/wrapper.tsx +++ b/packages/react-components/analytics/wrapper.tsx @@ -4,29 +4,45 @@ import CeloAnalyticsType from '@celo/react-components/analytics/CeloAnalytics' import { DefaultEventNames } from '@celo/react-components/analytics/constants' import ReactNativeLogger from '@celo/react-components/services/ReactNativeLogger' import * as React from 'react' +// tslint:disable-next-line +import { Component, ComponentType, forwardRef, Ref } from 'react' function getDisplayName
(WrappedComponent: React.ComponentType
) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component'
}
-interface ForwardedRef {
- forwardedRef?: React.Ref (
- WrappedComponent: React.ComponentType
- ): React.ComponentClass {
- const displayName = getDisplayName(WrappedComponent)
+ function componentWithAnalytics {
+ class WrapperComponent extends Component