@daochild/tronweb-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

tronweb-typescript

Typescript support package for tronweb library ^4.x (and 5.x)

NOTE:
Please use official documentation for get actual information about method and their arguments. https://developers.tron.network/reference/tronweb-object

Installation

Required: node v14+ LTS

npm install --save-dev @daochild/tronweb-typescript

Using

  1. Import type in package.json as @types/tronweb.
{
  "imports": {
    "@types/tronweb": "./node_modules/@daochild/tronweb-typescript/dist/index.d.ts"
  }
}
  1. Add reference type before import tronweb.
// <reference types="@types/tronweb" />
import TronWeb from 'tronweb';

Would be nice to do

To put a star ⭐ at the top right of the screen.

Package Sidebar

Install

npm i @daochild/tronweb-typescript

Weekly Downloads

2,118

Version

1.1.2

License

MIT

Unpacked Size

32.7 kB

Total Files

7

Last publish

Collaborators

  • daochild