I am trying to extend one project. I've added sjcl and @types/sjcl. I can successfully define types e.g.
var x = sjcl.BigNumber | undefined private _secret: sjcl.SjclEcdsaSecretKey
But when I do:
The test run complains as follows:
TypeError: Cannot read property 'curves' of undefined
TypeError: sjcl.bn is not a constructor
This happens while testing. This is the test command:
nyc mocha --require ts-node/register --require source-map-support/register --full-trace --timeout 40000 ./test/**/**.spec.ts