I noticed that in 1.6.20 the generated typescript ...
# javascript
d
I noticed that in 1.6.20 the generated typescript definitions explicitly use “any” for types that are not exported:
get 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:
Copy code
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.