medusa-extender / Exports / core/metadata-reader
▸ componentsMetadataReader<TComponentType
>(component
): InjectableOptions
<TComponentType
> & { type
: InjectableComponentTypes
}
internal
Return the options from components.
Name | Type |
---|---|
TComponentType |
unknown |
Name | Type |
---|---|
component |
Type <unknown > |
InjectableOptions
<TComponentType
> & { type
: InjectableComponentTypes
}
src/core/metadata-reader.ts:49
▸ metadataReader(modules
): CustomMap
internal
Read all metadata from the imported modules and extract components that will be stored by there type.
Name | Type | Description |
---|---|---|
modules |
Type <unknown >[] |
The modules from which the metadata are read. |