Open deepakaggarwal7 opened 1 year ago
TS file method with datatype in function doesn't work.
myFunction inside somefile.ts, which is rewired Doesn't work
function myFunction(a: number, b: number) { return a + b; }
Error thrown: SyntaxError: Unexpected token ':'
Works
function myFunction(a, b) { return a + b; }
There are some workarounds in #185
should be fixed in v7 - TS support added here: https://github.com/jhnns/rewire/pull/204
TS file method with datatype in function doesn't work.
myFunction inside somefile.ts, which is rewired Doesn't work
Error thrown: SyntaxError: Unexpected token ':'
Works