I'm confused by the code Dukat is generating when ...
# react
p
I'm confused by the code Dukat is generating when converting typescript to Kotlin. If I run for example: dukat ~/git/typed/DefinitelyTyped/types/react-bootstrap/index.d.ts It's generating code that doesn't compile:
Copy code
external open class Dropdown : React.Component<DropdownBaseProps /* Dropdown.DropdownBaseProps & React.HTMLProps<Dropdown> */> {
IntelliJ can't find an import for React.Component. Does anyone know how to resolved the missing dependency ?
n
i ended up copying the code and fixing it up manually, but it seems buggy and some cleanup required also needing to disable the dukat again to prevent it from generating broken stuff
👍 1
p
They need an extra setting that says "only generate stuff known to work" 🙂
👌 1
n
i also want to use react-bootstrap now.. i will probably use dukat and fix up the generated code.. it just seems like a ton of work to map all the things oka.. i tried
b
cc @[JB] Shagen
e
I am using react-bootstrap and I've generated Kotlin bindings for it and fixed many things with it. It is working in my apps (at least the components I'm using) https://github.com/epabst/kotlin-showcase/tree/master/src/jsMain/kotlin/bootstrap
👍 1