Home > kibana-plugin-public > IContextProvider
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: Partial<HandlerContextType<THandler>>, ...rest: HandlerParameters<THandler>) => Promise<HandlerContextType<THandler>[TContextName]> | HandlerContextType<THandler>[TContextName];
This function will be called each time a new context is built for a handler invocation.