Skip to content

need export relative external module from ambient module decl. #2516

Closed
@cmichaelgraham

Description

@cmichaelgraham

I am trying to facilitate use of TypeScript with ES6-based modular set of github repos. I am struggling with this pattern:

ambient module situation

typescript compiler wont allow export declaration in an ambient external module declaration that references an external module through relative external module name

the repos use systemjs and jspm to resolve aurelia-metadata. i want to use ambient module declarations to expose the types from aurelia-metadata

what i'm trying to achieve is effectively the same as copying the contents of origin.d.ts, resource-type.d.ts, and metadata.d.ts into the ambient module declaration in aurelia.d.ts.

note that ./metadata/index.js basically publishes the public interface through its exports, and that is precisely what i want to expose in the ambient module declaration

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