Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WrapPlugin

description

A wrap plugin to wrap other plugins or the API call. Wrapping order depends on location of the plugin in the plugins.wrap

example
plugins: {
// Plugin1 will wrap Plugin2 and Plugin2 will wrap the main API call since it's the last in the array
wrap: [Plugin1, Plugin2]
}

Hierarchy

Index

Properties

Methods

Properties

name: string
description

Unique plugin name that can identify an instance

Methods

  • description

    Execute the plugin

    Parameters

    • next: () => Promise<any>

      Next plugin to execute. Must be called manually

        • (): Promise<any>
        • Returns Promise<any>

    • context: PluginContext

      Common context for plugins

    Returns any

Generated using TypeDoc