rewire icon indicating copy to clipboard operation
rewire copied to clipboard

unpexpected : due to type definition in TS

Open deepakaggarwal7 opened this issue 1 year ago • 2 comments

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;
}

deepakaggarwal7 avatar Oct 06 '23 04:10 deepakaggarwal7

There are some workarounds in #185

nktnet1 avatar Oct 09 '23 04:10 nktnet1