Class: PojosMetadataMap
Constructors
constructor
• new PojosMetadataMap()
Properties
metadataStorage
▪ Static
Private
metadataStorage: Map
<symbol
, [key: string, metadata: Object][]>
Defined in
Methods
create
▸ Static
create<TModel
>(identifier
, metadata?
): void
Type parameters
Name | Type |
---|---|
TModel | extends Dictionary <TModel > |
Parameters
Name | Type |
---|---|
identifier | string | symbol |
metadata | { [key in string | number | symbol]?: PojoMetadata | [PojoMetadata] | Object } |
Returns
void
Defined in
normalizePojoMetadata
▸ Static
Private
normalizePojoMetadata(pojoMetadata
): Object
Parameters
Name | Type |
---|---|
pojoMetadata | unknown |
Returns
Object
Name | Type |
---|---|
depth | number |
type | () => PojoMetadata | [PojoMetadata ] |
Defined in
reset
▸ Static
reset(): void
Returns
void
Defined in
retrieve
▸ Static
retrieve(identifier
): [string
, { depth
: number
; isArray
: boolean
; isGetterOnly?
: boolean
; type
: () => PojoMetadata
}][]
Parameters
Name | Type |
---|---|
identifier | symbol |
Returns
[string
, { depth
: number
; isArray
: boolean
; isGetterOnly?
: boolean
; type
: () => PojoMetadata
}][]
Defined in
toSymbol
▸ Static
Private
toSymbol(metadata
): PojoMetadata
| [PojoMetadata
]
Parameters
Name | Type |
---|---|
metadata | PojoMetadata | [PojoMetadata ] |