diff --git a/package-lock.json b/package-lock.json index 9ebd3164b0..714c45dc7f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "lerna": "^8.1.9", "semver": "^7.6.3", "ts-jest": "^29.2.5", - "typescript": "^5.3.3", + "typescript": "^5.6.3", "typescript-eslint": "^8.16.0", "yarn": "^1.22.22", "zx": "^8.2.2" @@ -25586,9 +25586,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index a04526d7d6..a5c0c7c7a1 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "lerna": "^8.1.9", "semver": "^7.6.3", "ts-jest": "^29.2.5", - "typescript": "^5.3.3", + "typescript": "^5.6.3", "typescript-eslint": "^8.16.0", "yarn": "^1.22.22", "zx": "^8.2.2" diff --git a/packages/dht/src/connection/ConnectionManager.ts b/packages/dht/src/connection/ConnectionManager.ts index 275d3b1852..9af80eb47a 100644 --- a/packages/dht/src/connection/ConnectionManager.ts +++ b/packages/dht/src/connection/ConnectionManager.ts @@ -652,7 +652,7 @@ export class ConnectionManager extends EventEmitter implements public getDiagnosticInfo(): Record { const managedConnections: ManagedConnection[] = Array.from(this.endpoints.values()) .filter((endpoint) => endpoint.connected) - .map((endpoint) => endpoint.connection as ManagedConnection) + .map((endpoint) => endpoint.connection) return { connections: managedConnections.map((connection) => connection.getDiagnosticInfo()), connectionCount: this.endpoints.size diff --git a/packages/sdk/src/contracts/contract.ts b/packages/sdk/src/contracts/contract.ts index acbe52cf98..0d250db8f5 100644 --- a/packages/sdk/src/contracts/contract.ts +++ b/packages/sdk/src/contracts/contract.ts @@ -148,7 +148,7 @@ export const createDecoratedContract = ( * single-value results: the return type of contract.functions[methodName] is always * Promise (see https://docs.ethers.org/v6/api/contract/#BaseContract) */ - const methodNames = contract.interface.fragments.filter((f) => FunctionFragment.isFunction(f)).map((f) => (f as FunctionFragment).name) + const methodNames = contract.interface.fragments.filter((f) => FunctionFragment.isFunction(f)).map((f) => f.name) methodNames.forEach((methodName) => { decoratedContract[methodName] = createWrappedContractMethod( contract,