peterolson / BigInteger.js

An arbitrary length integer library for Javascript
The Unlicense
1.12k stars 187 forks source link

TS Definition Unexpected Token #149

Closed niklas-wortmann closed 6 years ago

niklas-wortmann commented 6 years ago

Hi, thanks for providing a TS Definition, but I am receiving an Error there:

ERROR: Unexpected token export
.cordova\node_modules\cordova-android\node_modules\big-integer\BigInteger.d.ts:5
export = bigInt;
^^^^^^

Am I doing something wrong, or is this simply an error?

peterolson commented 6 years ago

@toefraz You created the definition file, is there something wrong with the syntax here?

toefraz commented 6 years ago

The syntax looks fine to me, @peterolson

I’m guessing it’s some configuration issue with Cordova and typescript. Unfortunately I don’t have any experience with that project

peterolson commented 6 years ago

@JWO719 Are you able to use other TypeScript definitions without issue in your project?

niklas-wortmann commented 6 years ago

Yeah that worked. I could imagine it is a configuration thing but I dunno. I thought it was configured properly.

toefraz commented 6 years ago

@JWO719 If you posted your tsconfig maybe I could help spot the issue