Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 814 Bytes

kibana-plugin-public.icontextprovider.md

File metadata and controls

18 lines (10 loc) · 814 Bytes

Home > kibana-plugin-public > 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: Partial<HandlerContextType<THandler>>, ...rest: HandlerParameters<THandler>) => Promise<HandlerContextType<THandler>[TContextName]> | HandlerContextType<THandler>[TContextName];

Remarks

This function will be called each time a new context is built for a handler invocation.