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

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
I am trying to facilitate use of TypeScript with ES6-based modular set of github repos. I am struggling with this pattern:
typescript compiler wont allow
export declaration in an ambient external module declaration that references an external module through relative external module namethe repos use
systemjsandjspmto resolveaurelia-metadata. i want to use ambient module declarations to expose the types fromaurelia-metadatawhat i'm trying to achieve is effectively the same as copying the contents of
origin.d.ts,resource-type.d.ts, andmetadata.d.tsinto the ambient module declaration inaurelia.d.ts.note that
./metadata/index.jsbasically publishes the public interface through its exports, and that is precisely what i want to expose in the ambient module declaration