Description
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