Skip to content

Latest commit

 

History

History
68 lines (38 loc) · 1.85 KB

core_metadata_reader.md

File metadata and controls

68 lines (38 loc) · 1.85 KB

medusa-extender / Exports / core/metadata-reader

Module: core/metadata-reader

Table of contents

Namespaces

Functions

Functions

componentsMetadataReader

componentsMetadataReader<TComponentType>(component): InjectableOptions<TComponentType> & { type: InjectableComponentTypes }

internal

Return the options from components.

Type parameters

Name Type
TComponentType unknown

Parameters

Name Type
component Type<unknown>

Returns

InjectableOptions<TComponentType> & { type: InjectableComponentTypes }

Defined in

src/core/metadata-reader.ts:49


metadataReader

metadataReader(modules): CustomMap

internal

Read all metadata from the imported modules and extract components that will be stored by there type.

Parameters

Name Type Description
modules Type<unknown>[] The modules from which the metadata are read.

Returns

CustomMap

Defined in

src/core/metadata-reader.ts:16