Skip to content

Documentation / @finchart/core / index / teardown

Function: teardown() ​

teardown(dispose): PluginApi

Defined in: packages/core/src/primitives/plugin.ts:73

Builds an API that has nothing but a single dispose function.

Also the place to fold several teardown functions into one — call each of a plugin's own cleanups from inside here, in order.

Parameters ​

dispose ​

() => void

Returns ​

PluginApi