Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

A type of web3-eth is incorrect #3483

@odanado

Description

@odanado

When using web3-eth in TypeScript, the type does not match the actual value. This is a problem that also occurs in packages such as web3-eth-contract.

Expected behavior

import { Eth } from "web3-eth"
console.log(Eth) // => show object of something

Actual behavior

show undefined

Steps to reproduce the behavior

reproduce repository
https://github.com/odan-sandbox/web3.js-eth-incorrect-type/blob/master/src/app.spec.ts

Run

Versions

node: v12.11.1
web3.js: 1.2.6
typescript: 3.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.x1.0 related issuesTypesIncorrect or missing types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions