When using Dukat, parse and parseObject are translated correctly to:
open fun <T : Object3D> parse(json: Any, onLoad: (obj: Object3D) -> Unit = definedExternally): T
and
open fun <T : Object3D> parseObject(data: Any, geometries: Array<Any>, materials: Array<Material>): T
But the load function is translated incorrectly to:
// Note that the generic definition for ObjectType is dropped:
open fun load(url: String, onLoad: (obj: ObjectType) -> Unit = definedExternally, onProgress: (event: ProgressEvent) -> Unit = definedExternally, onError: (event: dynamic /* Error | ErrorEvent */) -> Unit = definedExternally)
And it's missing the generic definition in front of the function name
This is a snippet from the three.js ObjectLoader.d.ts file:
When using Dukat,
parse
andparseObject
are translated correctly to:and
But the load function is translated incorrectly to:
And it's missing the generic definition in front of the function name