Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (18 sloc) 466 Bytes
title layout
Plugin API
docs

A plugin is an object which has following properties.

Plugin Interface

name

  • Type: string
  • Required: true

Required property, the plugin name.

apply

  • Type: (api: SaberInstance, options: any) => void
  • Required: true

A function to invoke.

filterPlugins

  • Type: (plugins: Plugins[], options: any) => Plugins[]
  • Required: false

Filter the plugins, you can use it to add or remove plugins.

You can’t perform that action at this time.