Class HandlerMetadataStorage<TValue, TKey>
Type parameters
-
TValue = HandlerMetadata
-
TKey: Type<unknown> = any
Properties
Private Readonly [HANDLER_METADATA_SYMBOL]
[HANDLER_
METADATA_SYMBOL]: Map<string, TValue> = new Map<string, TValue>()
Methods
get
- get(controller: TKey, methodName: string): TValue | undefined
-
Parameters
-
controller: TKey
-
methodName: string
Returns TValue | undefined
Private getMetadataKey
- getMetadataKey(controller: Controller, methodName: string): string
-
Parameters
Returns string
set
- set(controller: TKey, methodName: string, metadata: TValue): void
-
Parameters
-
controller: TKey
-
methodName: string
-
metadata: TValue
Returns void