Automatically export all definitions from *.type.ts
files
#7
Labels
Change: patch
[Issue / PR] describes a small non-breaking change, such as bugfix or an optimization
Domain: meta
[Issue / PR] describes change in the development process, documentation, maintenance etc.
Pending: blocked
[Issue / PR] cannot be addressed until another issue is resolved
Priority: medium
[Issue / PR] should be addressed without delay
Type: improvement
[Issue / PR] addresses lack of a functionality or an open possibility of enhancement
Currently, when another entity definition is added to a
*.type.ts
file, to re-export it through entry-pointindex.ts
file it is necessary to reference this definition again viaexport { Entity } from "entity.type.ts";
statement:export type Type1 = any; + export type Type2 = any;
export { Type1, + Type2, } from "module.type.ts";
To comply to D.R.Y., the export statement should automatically pick up and re-export all definitions:
However, the latest version of TypeScript (4.4.x) preserves this export for type entities, causing runtime error due to these entities missing.
export type * from
microsoft/TypeScript#37238 to get resolvedThe text was updated successfully, but these errors were encountered: