I am trying to import a typescript error class using gentype like below.
type t
@new @genType.import("../lib/errors")
external myError: (int, string) => t = "MyError"
Gentype is not generating the proper constructor type in the generated .ts
file like below.
type myError = new (number, string) => t
Please advise.