Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace gen

Index

Functions

generatePluginModule

  • generatePluginModule(report: any, config?: { className?: string; extraMethods?: string; internal?: boolean }): string
  • Create a plugin adapter Typescript module from a plugin report

    Parameters

    • report: any

      A plugin report object generated by cybr. Step size must be odd

    • config: { className?: string; extraMethods?: string; internal?: boolean } = {}
      • Optional className?: string

        Optionally override the report's pluginName

      • Optional extraMethods?: string
      • Optional internal?: boolean

        Set this to true for any plugins that are bundled with the main fluid-music library. By default, the plugin modules generated by generatePluginModule import their fluid-music dependencies with from the fluid-music module. The plugins that are bundled with fluid-music, should import their deps from local typescript modules.

    Returns string