Class ExternalContextCreator
Properties
Private externalErrorProxy
Private filtersContextCreator
Private guardsContextCreator
Private handlerMetadataStorage
Private interceptorsConsumer
Private interceptorsContextCreator
Private pipesContextCreator
Methods
create
- create<T>(instance: Controller, callback: function, methodName: string, metadataKey?: string, paramsFactory?: ParamsFactory, contextId?: ContextId, inquirerId?: string): (Anonymous function)
-
Type parameters
Parameters
-
-
callback: function
-
methodName: string
-
Optional metadataKey: string
-
-
Default value contextId: ContextId = STATIC_CONTEXT
-
Optional inquirerId: string
Returns (Anonymous function)
createPipesFn
- createPipesFn(pipes: any[], paramsOptions: (ParamProperties<any, any> & object)[]): pipesFn
-
Parameters
Returns pipesFn
exchangeKeysForValues
- exchangeKeysForValues<TMetadata>(keys: string[], metadata: TMetadata, moduleContext: string, paramsFactory: ParamsFactory, contextId?: ContextId, inquirerId?: string): ParamProperties[]
-
Type parameters
Parameters
-
keys: string[]
-
metadata: TMetadata
-
moduleContext: string
-
-
Default value contextId: ContextId = STATIC_CONTEXT
-
Optional inquirerId: string
findContextModuleName
- findContextModuleName(constructor: Function): string
-
Parameters
Returns string
findProviderByClassName
- findProviderByClassName(module: Module, className: string): boolean
-
Parameters
-
module: Module
-
className: string
Returns boolean
getCustomFactory
- getCustomFactory(factory: function, data: any): function
-
Parameters
-
factory: function
-
data: any
Returns function
getMetadata
-
Type parameters
Parameters
-
-
methodName: string
-
Optional metadataKey: string
-
getParamValue
- getParamValue<T>(value: T, __namedParameters: object, transforms: Transform<any>[]): Promise<any>
-
Type parameters
Parameters
-
value: T
-
__namedParameters: object
-
data: any
-
metatype: any
-
type: any
-
transforms: Transform<any>[]
Returns Promise<any>
transformToResult
- transformToResult(resultOrDeffered: any): Promise<any>
-
Parameters
Returns Promise<any>