JetBrains / kotlin-wrappers

Kotlin wrappers for popular JavaScript libraries
Apache License 2.0
1.35k stars 162 forks source link

Add wrapper for antd #2232

Open gtn1024 opened 7 months ago

gtn1024 commented 7 months ago

Hi, Kotlin/JS is great. I am currently writing project with it.

Is it possible to provide antd wrapper? I used Karakum to generate Kotlin definition but failed.

It will be much more great if provide specific methods, which will help more people using Kotlin/JS!

lppedd commented 7 months ago

My take as of now is that until those types are available under this repository, the best way to approach the problem is:

  1. tweak the Karakum settings until the outputted types are decent
  2. run a good re-format of everything
  3. refactor manually what doesn't compile
  4. adjust the externals that don't look correct (e.g., Double instead of Int, missing Record usages, etc.)

That is what I do. You can read and inspect my code https://github.com/lppedd/kotlin-externals#initial-generation

leerenbo commented 2 months ago

@gtn1024 Hi,I have the same problem as you. I just spent a day wrapper the DayJS library. I'm about to wrapper the Antd library. How's your progress? How about we wrapper together and contribute to Kotlin-wrappers?