spatial-k icon indicating copy to clipboard operation
spatial-k copied to clipboard

Add @JsExport to keep the compiler from changing names

Open FeernandoOFF opened this issue 1 year ago • 1 comments
trafficstars

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
}

FeernandoOFF avatar Oct 03 '24 16:10 FeernandoOFF