Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Types not detected for ethjs-util re-exported methods #219

@s1na

Description

@s1na

Here we're re-exporting methods of ethjs-util:

const ethjsUtil = require('ethjs-util')
import BN = require('bn.js')
import rlp = require('rlp')
Object.assign(exports, ethjsUtil)

But because they're manually added to the exports object, typescript is not adding type definitions for them and Typescript users get an error when using one of those methods, e.g. stripHexPrefix.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy