Bas Verlooy
05/18/2021, 10:02 AMturansky
05/18/2021, 11:49 AMBas Verlooy
05/18/2021, 1:04 PMBas Verlooy
05/18/2021, 1:07 PMturansky
05/18/2021, 1:08 PMturansky
05/18/2021, 1:14 PMAnd what’s the best way to start manual conversion?1. Create library package
vis.network
2. Copy TS typings
3. Create simple replacements
export interface
-> external interface
string
-> String
…
4. Add @file:JsModule("vis-network")
5. Use commonjs
for Kotlin/JS buildturansky
05/18/2021, 1:16 PMBas Verlooy
05/18/2021, 1:23 PMvis.network
library package be located? the TS typing also has multiple files, can I combine them into 1 file or should I create separate files for every TS typing fileturansky
05/18/2021, 1:39 PMturansky
05/18/2021, 1:41 PMkotlin-wrappers
For example - react-table wrappersBas Verlooy
05/18/2021, 1:59 PMBas Verlooy
05/18/2021, 2:01 PMBas Verlooy
05/18/2021, 2:02 PMturansky
05/18/2021, 2:03 PMdo the dependencies matter from the library?Yes, if there types used in your library public API
turansky
05/18/2021, 2:05 PMany
or dynamic
means, that it can be more strict 🙂turansky
05/18/2021, 2:06 PMBas Verlooy
05/18/2021, 2:14 PMturansky
05/18/2021, 2:38 PMThat would mean I need to derive my .kt file from the .ts files right?You can check
npm
package in that case
Usually typings generated during build and included inside npm
packageturansky
05/18/2021, 2:42 PM