• Typed helper to define the initialize() function.

    initialize() function gets the context it needs from the application, and returns two things:

    PluginContext which will be added to the application instance. StartContext which will be passed to the start() function if present.

    These types are inferred automatically so you don't need to specify them explicitly.

    Type Parameters

    • NeedContext extends Record<string | symbol, any>

    • PluginContext extends Record<string | symbol, any>

    • StartContext extends Record<string | symbol, any>

    Parameters

    • initialize: initialize<NeedContext, PluginContext, StartContext>

    Returns typeof initialize

  • Deprecated

    StartContext will be deprecated. Use closure to pass value to your start() instead.

    Type Parameters

    • NeedContext extends Record<string | symbol, any>

    • StartContext extends Record<string | symbol, any>

    Parameters

    Returns typeof initialize

  • Type Parameters

    • NeedContext extends Record<string | symbol, any>

    Parameters

    Returns typeof initialize

Generated using TypeDoc