Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp external interface generated in the wrong file location generated.kt. #16

Open
leerenbo opened this issue Sep 10, 2024 · 0 comments

Comments

@leerenbo
Copy link

karakum.config.json

{
    "input": [
        "<nodeModules>/antd/es/button/**/*.d.ts",
        "<nodeModules>/antd/es/config-provider/**/*.d.ts"
    ],
    "ignoreInput": [
        "<nodeModules>/antd/es/_util/**/*.d.ts"
    ],
    "output": "src/jsMain/generated/",
    "ignoreOutput": [
    ],
    "libraryName": "antd",
    "moduleNameMapper": {
        ".*": "antd"
    },
    "importMapper": {
        "react": {
            "default": ""
        }
    },
    "importInjector": {
        ".*": "web.html.*",
        ".*": "antd.*"
    }
}

buttonHelpers.d.ts

declare const ButtonTypes: readonly ["default", "primary", "dashed", "link", "text"];
export type ButtonType = (typeof ButtonTypes)[number];

buttonHelpers.kt

external val ButtonTypes: /* readonly [
    "default",
    "primary",
    "dashed",
    "link",
    "text"
] */

typealias ButtonType = Temp2

generated.kt

sealed external interface Temp2 {
companion object {
@seskar.js.JsValue("default")
val default: Temp2
@seskar.js.JsValue("primary")
val primary: Temp2
@seskar.js.JsValue("dashed")
val dashed: Temp2
@seskar.js.JsValue("link")
val link: Temp2
@seskar.js.JsValue("text")
val text: Temp2
}
}

Why is the generated Temp2 not in buttonHelpers.kt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant