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
Nikky
01/13/2020, 7:33 AM
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
Paul N
01/13/2020, 8:41 AM
They need an extra setting that says "only generate stuff known to work" 🙂
👌 1
n
Nikky
01/13/2020, 8:49 AM
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