Skip to content

Commit 576748b

Browse files
authored
build(deps): Bump typescript to v5.6 (#2880)
Also fixed `eslint` issues which are now found by TypeScript.
1 parent eb6de91 commit 576748b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"lerna": "^8.1.9",
5252
"semver": "^7.6.3",
5353
"ts-jest": "^29.2.5",
54-
"typescript": "^5.3.3",
54+
"typescript": "^5.6.3",
5555
"typescript-eslint": "^8.16.0",
5656
"yarn": "^1.22.22",
5757
"zx": "^8.2.4"

packages/dht/src/connection/ConnectionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ export class ConnectionManager extends EventEmitter<TransportEvents> implements
652652
public getDiagnosticInfo(): Record<string, unknown> {
653653
const managedConnections: ManagedConnection[] = Array.from(this.endpoints.values())
654654
.filter((endpoint) => endpoint.connected)
655-
.map((endpoint) => endpoint.connection as ManagedConnection)
655+
.map((endpoint) => endpoint.connection)
656656
return {
657657
connections: managedConnections.map((connection) => connection.getDiagnosticInfo()),
658658
connectionCount: this.endpoints.size

packages/sdk/src/contracts/contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const createDecoratedContract = <T extends BaseContract>(
148148
* single-value results: the return type of contract.functions[methodName] is always
149149
* Promise<Result> (see https://docs.ethers.org/v6/api/contract/#BaseContract)
150150
*/
151-
const methodNames = contract.interface.fragments.filter((f) => FunctionFragment.isFunction(f)).map((f) => (f as FunctionFragment).name)
151+
const methodNames = contract.interface.fragments.filter((f) => FunctionFragment.isFunction(f)).map((f) => f.name)
152152
methodNames.forEach((methodName) => {
153153
decoratedContract[methodName] = createWrappedContractMethod(
154154
contract,

0 commit comments

Comments
 (0)