Added electron-notify

This commit is contained in:
Daniel Pereira
2016-08-15 13:25:00 -05:00
parent 5414239ff0
commit 3b613b085d
2 changed files with 27 additions and 0 deletions

View File

27
electron-notify/electron-notify.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
// Type definitions for electron-notify v0.1.0
// Project: https://github.com/hankbao/electron-notify
// Definitions by: Daniel Pereira <https://github.com/djpereira>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../github-electron/github-electron.d.ts" />
declare namespace ElectronNotify {
}
/** Nice and simple notifications for electron apps */
declare module 'electron-notifications' {
/** Change some config options. Can be run multiple times, also between notify()-calls to change electron-notifys behaviour. */
export function setConfig(configObj);
/** Displays new notification. */
export function notify(notificationObj);
/** Clears the animation queue and closes all windows opened by electron-notify. Call this to clean up before quiting your app. */
export function closeAll();
export function setTemplatePath(path);
/** Returns the maximum amount of notifications that fit onto the users screen. */
export function calcMaxVisibleNotification(): number;
}