Skip to content

Sharing constants #24

@Vlad8161

Description

@Vlad8161

Hello. Is there any way to share constants between kotlin and typescript?

For example:

object ApiConstants {
    const val SOME_VAL_1 = 1234
    const val SOME_VAL_2 = "hello world"
}

Expected TS output:

let ApiConstants = {
    SOME_VAL_1: 1234,
    SOME_VAL_2: "hello world"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions