Skip to main content

Class: PojosMetadataMap

Constructors

constructor

new PojosMetadataMap()

Properties

metadataStorage

Static Private metadataStorage: Map<symbol, [key: string, metadata: Object][]>

Defined in

lib/metadata-map.ts:13

Methods

create

Static create<TModel>(identifier, metadata?): void

Type parameters

NameType
TModelextends Dictionary<TModel>

Parameters

NameType
identifierstring | symbol
metadata{ [key in string | number | symbol]?: PojoMetadata | [PojoMetadata] | Object }

Returns

void

Defined in

lib/metadata-map.ts:28


normalizePojoMetadata

Static Private normalizePojoMetadata(pojoMetadata): Object

Parameters

NameType
pojoMetadataunknown

Returns

Object

NameType
depthnumber
type() => PojoMetadata | [PojoMetadata]

Defined in

lib/metadata-map.ts:84


reset

Static reset(): void

Returns

void

Defined in

lib/metadata-map.ts:24


retrieve

Static retrieve(identifier): [string, { depth: number ; isArray: boolean ; isGetterOnly?: boolean ; type: () => PojoMetadata }][]

Parameters

NameType
identifiersymbol

Returns

[string, { depth: number ; isArray: boolean ; isGetterOnly?: boolean ; type: () => PojoMetadata }][]

Defined in

lib/metadata-map.ts:58


toSymbol

Static Private toSymbol(metadata): PojoMetadata | [PojoMetadata]

Parameters

NameType
metadataPojoMetadata | [PojoMetadata]

Returns

PojoMetadata | [PojoMetadata]

Defined in

lib/metadata-map.ts:116