Opensearch dashboards.icontextprovider
Home > opensearch-dashboards > IContextProvider
IContextProvider type
A function that returns a context value for a specific key of given context type.
Signature:
export declare type IContextProvider<THandler extends HandlerFunction<any>, TContextName extends keyof HandlerContextType<THandler>> = (context: PartialExceptFor<HandlerContextType<THandler>, 'core'>, ...rest: HandlerParameters<THandler>) => Promise<HandlerContextType<THandler>[TContextName]> | HandlerContextType<THandler>[TContextName];
References: HandlerFunction, HandlerContextType, HandlerParameters
Remarks
This function will be called each time a new context is built for a handler invocation.