1 year ago
    Hi ! I created a project with ktor server. I have a frontend with typescript. I’m looking for a solution to share API data between projects. My idea is to create a module in my ktor project which contains data class (using kotlinx.serialization) and API call (using ktor client). I want to generate the API calls for my frontend in typescript. Can I do that with MPP ? Do you have some links, tips ?
    Ok, I almost succeed it. I have a module with my data classes configured with MPP. I failed to generate JS code because I use enum classs.
    Ok, there is a lot of bug with IR (which generate ts code). So I’ll create all my data classes in a dedicated module for the future. But for now, I’m blocked (