@types/node-notifier
Version:
TypeScript definitions for node-notifier
29 lines (25 loc) • 1.04 kB
TypeScript
import notifier = require("../");
declare class WindowsToaster {
constructor(option?: notifier.Option);
notify(notification?: WindowsToaster.Notification, callback?: notifier.NotificationCallback): WindowsToaster;
}
declare namespace WindowsToaster {
interface Notification extends notifier.Notification {
/**
* Defined by http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx
*/
sound?: boolean | string | undefined;
/** ID to use for closing notification. */
id?: number | undefined;
/** App.ID and app Name. Defaults to no value, causing SnoreToast text to be visible. */
appID?: string | undefined;
/** Refer to previously created notification to close. */
remove?: number | undefined;
/**
* Creates a shortcut <path> in the start menu which point to the
* executable <application>, appID used for the notifications.
*/
install?: string | undefined;
}
}
export = WindowsToaster;