• Typed helper to define a just-web plugin.

    Deprecated

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

    Note

    due to an issue with TypeScript, the function init() and start() needs to be defined as an arrow function. If not, the type can't be inferred correctly.

    Type Parameters

    • Params extends any[]

    • NeedContext extends Record<string | symbol, any>

    • PluginContext extends Record<string | symbol, any>

    • StartContext extends Record<string | symbol, any>

    Parameters

    • plugin: ((...args: Params) => TypeD<NeedContext, PluginContext, StartContext>)
        • (...args: Params): TypeD<NeedContext, PluginContext, StartContext>
        • Parameters

          • Rest ...args: Params

          Returns TypeD<NeedContext, PluginContext, StartContext>

    Returns typeof plugin

  • Typed helper to define a just-web plugin.

    Deprecated

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

    Note

    due to an issue with TypeScript, the function init() and start() needs to be defined as an arrow function. If not, the type can't be inferred correctly.

    Type Parameters

    • Params extends any[]

    • NeedContext extends Record<string | symbol, any>

    • StartContext extends Record<string | symbol, any>

    Parameters

    • plugin: ((...args: Params) => TypeC<NeedContext, StartContext>)
        • (...args: Params): TypeC<NeedContext, StartContext>
        • Parameters

          • Rest ...args: Params

          Returns TypeC<NeedContext, StartContext>

    Returns typeof plugin

  • Typed helper to define a just-web plugin.

    Note

    due to an issue with TypeScript, the function init() and start() needs to be defined as an arrow function. If not, the type can't be inferred correctly.

    Type Parameters

    • Params extends any[]

    • NeedContext extends Record<string | symbol, any>

    • PluginContext extends Record<string | symbol, any>

    Parameters

    Returns typeof plugin

  • Typed helper to define a just-web plugin.

    Note

    due to an issue with TypeScript, the function init() and start() needs to be defined as an arrow function. If not, the type can't be inferred correctly.

    Type Parameters

    • Params extends any[]

    • NeedContext extends Record<string | symbol, any>

    • PluginContext extends Record<string | symbol, any>

    Parameters

    • plugin: ((...args: Params) => TypeB<NeedContext, PluginContext>)
        • (...args: Params): TypeB<NeedContext, PluginContext>
        • Parameters

          • Rest ...args: Params

          Returns TypeB<NeedContext, PluginContext>

    Returns typeof plugin

  • Typed helper to define a just-web plugin.

    Note

    due to an issue with TypeScript, the function init() and start() needs to be defined as an arrow function. If not, the type can't be inferred correctly.

    Type Parameters

    • Params extends any[]

    • NeedContext extends Record<string | symbol, any>

    Parameters

    Returns typeof plugin

  • Typed helper to define a just-web plugin.

    Note

    due to an issue with TypeScript, the function init() and start() needs to be defined as an arrow function. If not, the type can't be inferred correctly.

    Type Parameters

    • NeedContext extends Record<string | symbol, any>

    Parameters

    • plugin: ((...args: any[]) => TypeA<NeedContext>)
        • (...args: any[]): TypeA<NeedContext>
        • Parameters

          • Rest ...args: any[]

          Returns TypeA<NeedContext>

    Returns typeof plugin

Generated using TypeDoc