- 
                Notifications
    
You must be signed in to change notification settings  - Fork 194
 
Closed
Description
This issue is sub issue of #399
TypeRegistry.Entries is not used at all, but bundled.
Because namespace XXX {} is generated to tree-shake unfriendly code.
Related to a long standing issue microsoft/TypeScript#27604
export namespace TypeRegistry {
  const map = new Map<string, TypeRegistryValidationFunction<any>>()
  export function Entries() {
    return new Map(map)
  }
  export function Clear() {
    return map.clear()
  }
  ...var TypeRegistry;
(function(TypeRegistry2) {
  const map = /* @__PURE__ */ new Map();
  function Entries() {
    return new Map(map);
  }
  TypeRegistry2.Entries = Entries;
  function Clear() {
    return map.clear();
  }
  TypeRegistry2.Clear = Clear;
  ...
})(TypeRegistry || (TypeRegistry = {}));Metadata
Metadata
Assignees
Labels
No labels