Closed sgrove closed 1 year ago
One small hack I've found is to make a type alias but mark it opaque and use that instead, e.g.:
@genType.opaque
type userExn = exn
Obviously not ideal from the Javascript/Typescript side of things, but it means TypeScript can at least compile and doesn't block things for a bit.
Exporting a function like:
Outputs the following TypeScript:
But
exn
is never defined/imported, so we get an error:It'd be nice to even export it as
unknown
, since that would allow TypeSCript to continue