I have a problem and am not entirely sure what my options are to solve it.
I have a Kotlin/JS react project and am trying to use a library that defines a particular component.
This library has an @types/lib type declaration package, but dukat fails to generate the externals due to a StackOverflowError.
Downloading the index.d.ts and running dukat via the cli doesnt give this error, but it doesnt understand how to handle the react bindings and generates externals with wrong type names.
Defining the definitions myself is very difficult as it is a very big library. (index.d.ts is roughly 5000 lines long)
What I think I want is some way to make dukat work, or have some js/ts source code that acts as a bridge between the kotlin and external js code, where I can define a small type definition only for my purposes
What options do I have to tackle this problem?