I'm trying to use the IR compiler to generate d.ts...
# javascript
d
I'm trying to use the IR compiler to generate d.ts files. I have
Copy code
@OptIn(ExperimentalJsExport::class)
@JsExport
class TestClass(val hello:String)
And I'm just seeing an empty build/js/packages/mypackage/kotlin folder
Copy code
js(IR) {
    browser {
        testTask {
            useKarma {
                useChromeHeadless()
                webpackConfig.cssSupport.enabled = true
            }
        }
    }
    binaries.executable()
}
is the portion in my build.gradle
t
d
I'm not seeing anything different, I have everything set up the same, other than the fact yours is a
kotlin("js"
and mine is multiplatform
https://github.com/dphart/kmm-sample If you're able to look at that and see what I'm missing that'd be awesome
i
I got
IllegalStateException: Class Calculator.Companion with kind: OBJECT
and created an issue https://youtrack.jetbrains.com/issue/KT-41914. Is it the problem you talked about?