Derek Wong
04/21/2022, 8:53 PMget created(): any/* kotlinx.datetime.Instant */;
In previous versions I believe these would use undefined named types like this:
get created(): kotlinx.datetime.Instant
The issue with the explicit “any” type is that I’m no longer able to use my own supplemental typescript definitions for Webstorm to pick up like this:
export namespace kotlinx.datetime {
export class Instant {
toDate(): Date
__proto__: any
}
}
I’m sure there is a good reason for switching over to the “any” type for unexported types, but is there any possibility of a flag to generate the named unknown types we had before?
Being able to use supplemental typings is still pretty handy since a lot of the kotlin libraries are still not exportable. Also open to any alternatives to the approach I was using to add typings that works with the new export format if anyone knows.hfhbd
04/22/2022, 12:03 AM