When i try to compile and use this library with typescript a typescript error occurs.
Error:
node_modules/address/lib/address.d.ts:1:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
There is a definition problem on address.d.ts. The namespace have to be replaced with
declare namespace .
Working Code:
When i try to compile and use this library with typescript a typescript error occurs. Error:
node_modules/address/lib/address.d.ts:1:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
There is a definition problem on address.d.ts. The namespace have to be replaced with declare namespace . Working Code: