afterSave & Fix CustomSounds

This commit is contained in:
thororen1234 2024-09-11 02:24:39 -04:00
parent cc6db0b72b
commit 7c95d3a729
2 changed files with 7 additions and 0 deletions

View file

@ -117,6 +117,11 @@ export interface PluginDef {
* If a string is returned, show the error to the user.
*/
beforeSave?(options: Record<string, any>): Promisable<true | string>;
/**
* Check that this returns true after allowing a save to complete.
* If a string is returned, show the error to the user.
*/
afterSave?: boolean;
/**
* Allows you to specify a custom Component that will be rendered in your
* plugin's settings page