Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FeernandoOFF opened this issue Oct 3, 2024 · 1 comment
Open

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

FeernandoOFF opened this issue Oct 3, 2024 · 1 comment

Comments

@FeernandoOFF
Copy link

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
Copy link
Contributor

P72B commented Oct 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants