Methods
Abstract createConcreteContext
- createConcreteContext<T, R>(metadata: T, contextId?: ContextId, inquirerId?: string): R
-
Type parameters
Parameters
-
metadata: T
-
Optional contextId: ContextId
-
Optional inquirerId: string
Returns R
createContext
- createContext<T, R>(instance: Controller, callback: (...args: any[]) => void, metadataKey: string, contextId?: ContextId, inquirerId?: string): R
-
Type parameters
-
T: unknown[] = any
-
R: unknown[] = any
Parameters
-
-
callback: (...args: any[]) => void
-
metadataKey: string
-
Default value contextId: ContextId = STATIC_CONTEXT
-
Optional inquirerId: string
Returns R
Optional getGlobalMetadata
- getGlobalMetadata<T>(contextId?: ContextId, inquirerId?: string): T
-
Type parameters
Parameters
-
Optional contextId: ContextId
-
Optional inquirerId: string
Returns T
reflectClassMetadata
- reflectClassMetadata<T>(instance: Controller, metadataKey: string): T
-
Type parameters
Parameters
Returns T
reflectMethodMetadata
- reflectMethodMetadata<T>(callback: (...args: unknown[]) => unknown, metadataKey: string): T
-
Type parameters
Parameters
-
callback: (...args: unknown[]) => unknown
-
- (...args: unknown[]): unknown
-
Parameters
Returns unknown
-
metadataKey: string
Returns T