The package for type declarations is available at @daochild/tronweb-typescript. To include it in the package.json with the alias @types/tronweb
, add the following:
"devDependencies": {
"@types/tronweb": "npm:@daochild/tronweb-typescript@^1.1.2"
}
This allows the compiler to locate the type declarations.
However, the package is missing some properties such as defaultAddress
, signature
, fullNode
, and txPbToRawDataHex
. Due to these missing properties, the package is currently not imported in this workspace.