Archived
1
0

Add deinit for plugins

This commit is contained in:
Asher
2021-01-20 15:48:35 -06:00
parent 3c6fac9ce4
commit 017b1cc633
3 changed files with 23 additions and 1 deletions

View File

@ -167,6 +167,11 @@ export interface Plugin {
*/
init(config: PluginConfig): void
/**
* Called when the plugin should dispose/shutdown everything.
*/
deinit?(): Promise<void>
/**
* Returns the plugin's router.
*