ntrrgc / ts-generator

Generate TypeScript definitions from Kotlin/Java/JVM classes
Other
263 stars 45 forks source link

Support extending generic superclasses. #9

Closed hpoul closed 5 years ago

hpoul commented 6 years ago

Previously extending a class from a generic super class would not translate correctly. ie.

class BaseClass<T>;
class DerivedClass: BaseClass<String>

would generate:

interface BaseClass<T> {}
interface DerivedClass extends BaseClass {} /// <-- missing <string>