Skip to content

Interop Gen: Support Export/Import Declarations #378

Open
@nikeokoronkwo

Description

@nikeokoronkwo

This issue is to add support to the Dart JS Interop Generator for supporting imported/exported declarations.

Some declaration files may export declarations from other files, and we should handle these declarations, most likely by parsing the necessary file, filtering for the specified declaration, and associating any aliases placed on the declaration.

This issue also addresses handling default exports, defaulting their names to default when not named.

// a.ts
export { a, b, c } // named items
export default c; // named default export
export * from "file.ts" // export from file

// b.ts
import { a as z } from "a.ts";

export { z } // aliasing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions