Skip to content

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

@FeernandoOFF

Description

@FeernandoOFF

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions