Export Modules From
TypeScripts ability to re-export got closer to supporting
the additional cases available in ES2018
JavaScript exports have the ability to elegantly
re-export a part of a dependency:
// When you wanted to export the full object, that
becomes a little more verbose in previous versions
of TypeScript:
export { ScriptTransformer } from "@jest/transform";
// With 3.8, TypeScript supports more of the export
statement forms in the JavaScript specs, letting
you write a single line to re-export a module
import * as console from "@jest/console";
import * as reporters from "@jest/reporters";
export { console, reporters };
export * as jestConsole from "@jest/console";
export * as jestReporters from "@jest/reporters";