dellisd / spatial-k

Spatial K - A set of Kotlin Multiplatform Libraries for working with geospatial data
https://dellisd.github.io/spatial-k
MIT License
67 stars 12 forks source link

Add @JsExport to keep the compiler from changing names #141

Open FeernandoOFF opened 1 month ago

FeernandoOFF commented 1 month ago

I'm trying to create a JS library from my Shared Package that uses spatiak-k FeatureCollection but when looking at the generated type the names get lost and casted as any and when trying to reach them on runtime the names get changed.

export declare class Foo implements FooInterface {
    constructor(httpClient?: any/* HttpClient */);
    getDataAsync(): Promise<any/* FeatureCollection */>; // <--- It is just commented
}
P72B commented 1 month ago

It's because of missing @JsExport annotations in the FeatureCollection and following sub classes.