Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
548 stars 44 forks source link

Unresolved reference: AsyncGenerator in generated code when adding @actions/glob as a npm dependency #478

Open ilgonmic opened 2 years ago

ilgonmic commented 2 years ago

🕗 Version

0.5.8-rc.4

💻 Code or Package Name

@actions/glob 0.1.0

🙁 Actual behavior

Creating of unresolved reference

Generated code

@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")

import kotlin.js.*
import kotlin.js.Json
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*

external interface Globber {
    fun getSearchPaths(): Array<String>
    fun glob(): Promise<Array<String>>
    fun globGenerator(): AsyncGenerator<String, Unit>  // <-- Unresolved reference
}

https://youtrack.jetbrains.com/issue/KT-40933