Skip to content

Compiler warning: Exported declaration uses non-exportable parameter type #172

Open
@gino-m

Description

@gino-m

Tried using ImmutableList, ImmutableMap, PersistentList, and PersistentMap both in data class constructors and as fields.

Kotlin lang: 1.9.20. Deps:

 sourceSets {
    commonMain {
      dependencies { implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.7") }
    }
    jsMain {
        dependencies { implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable-js:0.3.7") }
    }

Update: Looking at the code, I see the classes in this lib do not @JsExport any classes, making them inaccessible from Koltin JS (IR). Are there any plans to allow this library to be exposed through Kotlin JS libs as well?

Update 2: I understand what I'm actually looking for is Typescript bindings for Kotlin stdlib or immutable collections. Is that on the roadmap by chance?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions