Skip to content

NamedModuleDescriptor

Describes the structure of a module descriptor.

A module descriptor can either be a string (representing the module name) or an object with the following properties:

  • name: The name of the module.
  • staticMembers: An optional array of named module descriptors representing static members of the module.
  • instanceMembers: An optional array of named module descriptors representing instance members of the module.
type NamedModuleDescriptor = string | {
name: string;
staticMembers?: Array<NamedModuleDescriptor>;
instanceMembers?: Array<NamedModuleDescriptor>;
};