Hello, is that possible to convert React and Redux...
# javascript
d
Hello, is that possible to convert React and Redux d.ts with ts2kt?
b
Just try and let us know if you faced any problem or even wasn’t
d
I just tried, and get a lot of problems 😃 but they possible related to project config
I added screenshot with converted d.ts
b
Well, you can try to resolve them manually now.
Please file an issue here https://github.com/Kotlin/ts2kt/issues
d
I will do it
Btw I converted d.ts from @types
is that matters at all which kind of definitions to use?
b
in general it should be ok
d
Ok, thx I will)
Woohoo! Looks like ones from @types was outdated, [there](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts) I found latest, and looks like all was built found.
looks some issues with react still exists, fun oneOfType(types: Array<(object: T, key: String, componentName: String, rest: Any) -> Error?>): Requireable<Any> fun arrayOf(type: (object: T, key: String, componentName: String, rest: Any) -> Error?): Requireable<Any> fun objectOf(type: (object: T, key: String, componentName: String, rest: Any) -> Error?): Requireable<Any>
Most issues which I missed is generated in index.React.kt
Looks like lack of classes inside org.w3c.dom
e.g external interface ReactHTMLElement<T : HTMLElement> : DetailedReactHTMLElement<AllHTMLAttributes<T>, T> there is generic AllHTMLAttributes<T> which hasn't representation inside java package, there is only Attr interface
ok it's custom)