[plugin] Add function called before Notification gets dismissed
This commit is contained in:
parent
a3f4be8ce6
commit
5e0a6fd3b4
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"license": "MIT",
|
||||
"version": "1.0.0-alpha.5",
|
||||
"version": "1.0.0-alpha.6",
|
||||
"name": "@flaschengeist/types",
|
||||
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
|
||||
"homepage": "https://flaschengeist.dev/",
|
||||
|
@ -24,7 +24,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.4.1",
|
||||
"typescript": "^4.4.4"
|
||||
"typescript": "^4.5.2"
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
|
|
|
@ -62,10 +62,12 @@ export namespace FG_Plugin {
|
|||
* Interface for a frontend notification
|
||||
*/
|
||||
export interface Notification extends FG.Notification {
|
||||
/** If set a button for accepting will be shown, this function will get called before deleting the notification */
|
||||
accept?(): Promise<void>;
|
||||
/** If set this function is called before the notification gets deleted */
|
||||
reject?(): Promise<void>;
|
||||
/** If set, a button for accepting will be shown, this function will get called before deleting the notification */
|
||||
accept?(): Promise<any>;
|
||||
/** If set, a reject button is shown and this function is called before the notification gets deleted */
|
||||
reject?(): Promise<any>;
|
||||
/** If set, this function is called before the notification gets deleted */
|
||||
dismiss?(): Promise<any>;
|
||||
/** If set the notification text is interpreted as a link to this location */
|
||||
link?: RouteLocationRaw;
|
||||
/** If set this icon is used */
|
||||
|
|
Loading…
Reference in New Issue