Skip to content

Commit

Permalink
build(deps): Bump typescript to v5.6 (#2880)
Browse files Browse the repository at this point in the history
Also fixed `eslint` issues which are now found by TypeScript.
  • Loading branch information
teogeb authored Dec 9, 2024
1 parent eb6de91 commit 576748b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/dht/src/connection/ConnectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export class ConnectionManager extends EventEmitter<TransportEvents> implements
public getDiagnosticInfo(): Record<string, unknown> {
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
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/contracts/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const createDecoratedContract = <T extends BaseContract>(
* single-value results: the return type of contract.functions[methodName] is always
* Promise<Result> (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,
Expand Down

0 comments on commit 576748b

Please sign in to comment.