See question title. I found a [great reference](https://stackoverflow.com/a/34842087/718180) for the forms of `export` available, but I have not seen what I'm looking for.

Is it possible to do something like the following?

```
// file: constants.js
export const SomeConstant1 = 'yay';
export const SomeConstant2 = 'yayayaya';

// file: index.js
export * as Constants from './constants.js';

```

I.e. this would provide a named export `Constants` inside of `index.js` containing all of the named exports from `constants.js`.

---

[This answer](https://stackoverflow.com/questions/42728140/is-it-possible-to-export-as-foo-in-typescript) seems to indicate it's not possible in TypeScript; is the same true for pure JavaScript?

(This example is a bit contrived; in reality I'm trying to have a `prop-types.js` module that uses named exports for internal use within the React package, but also exports the prop type definitions under `PropTypes` for external consumption. I tried to simplify for the sake of the question.)