@types/angular-notifications
Advanced tools
@@ -9,80 +9,83 @@ // Type definitions for angular-notifications | ||
| import * as angular from 'angular'; | ||
| import * as angular from "angular"; | ||
| declare module 'angular' { | ||
| declare module "angular" { | ||
| export namespace notifications { | ||
| interface IAnimation { | ||
| duration: number; | ||
| enabled: boolean; | ||
| duration: number; | ||
| enabled: boolean; | ||
| } | ||
| interface ISettings { | ||
| info: IAnimation; | ||
| warning: IAnimation; | ||
| error: IAnimation; | ||
| success: IAnimation; | ||
| progress: IAnimation; | ||
| custom: IAnimation; | ||
| details: boolean; | ||
| localStorage: boolean; | ||
| html5Mode: boolean; | ||
| html5DefaultIcon: string; | ||
| info: IAnimation; | ||
| warning: IAnimation; | ||
| error: IAnimation; | ||
| success: IAnimation; | ||
| progress: IAnimation; | ||
| custom: IAnimation; | ||
| details: boolean; | ||
| localStorage: boolean; | ||
| html5Mode: boolean; | ||
| html5DefaultIcon: string; | ||
| } | ||
| interface INotification { | ||
| type: string; | ||
| image: string; | ||
| icon: string; | ||
| title: string; | ||
| content: string; | ||
| timestamp: string; | ||
| userData: string; | ||
| type: string; | ||
| image: string; | ||
| icon: string; | ||
| title: string; | ||
| content: string; | ||
| timestamp: string; | ||
| userData: string; | ||
| } | ||
| interface INotificationFactory extends angular.IModule { | ||
| /* ========== SETTINGS RELATED METHODS =============*/ | ||
| /* ========== SETTINGS RELATED METHODS =============*/ | ||
| disableHtml5Mode(): void; | ||
| disableType(notificationType: string): void; | ||
| enableHtml5Mode(): void; | ||
| enableType(notificationType: string): void; | ||
| getSettings(): ISettings; | ||
| toggleType(notificationType: string): void; | ||
| toggleHtml5Mode(): void; | ||
| requestHtml5ModePermissions(): boolean; | ||
| disableHtml5Mode(): void; | ||
| disableType(notificationType: string): void; | ||
| enableHtml5Mode(): void; | ||
| enableType(notificationType: string): void; | ||
| getSettings(): ISettings; | ||
| toggleType(notificationType: string): void; | ||
| toggleHtml5Mode(): void; | ||
| requestHtml5ModePermissions(): boolean; | ||
| /* ============ QUERYING RELATED METHODS ============*/ | ||
| /* ============ QUERYING RELATED METHODS ============*/ | ||
| getAll(): Array<INotification>; | ||
| getQueue(): Array<INotification>; | ||
| getAll(): Array<INotification>; | ||
| getQueue(): Array<INotification>; | ||
| /* ============== NOTIFICATION METHODS ==============*/ | ||
| /* ============== NOTIFICATION METHODS ==============*/ | ||
| info(title: string): INotification; | ||
| info(title: string, content: string): INotification; | ||
| info(title: string, content: string, userData: any): INotification; | ||
| error(title: string): INotification; | ||
| error(title: string, content: string): INotification; | ||
| error(title: string, content: string, userData: any): INotification; | ||
| success(title: string): INotification; | ||
| success(title: string, content: string): INotification; | ||
| success(title: string, content: string, userData: any): INotification; | ||
| warning(title: string): INotification; | ||
| warning(title: string, content: string): INotification; | ||
| warning(title: string, content: string, userData: any): INotification; | ||
| awesomeNotify(type: string, icon: string, title: string, content: string, userData: any): INotification; | ||
| notify(image: string, title: string, content: string, userData: any): INotification; | ||
| makeNotification( | ||
| type: string, | ||
| image: string, | ||
| icon: string, | ||
| title: string, | ||
| content: string, | ||
| userData: any, | ||
| ): INotification; | ||
| info(title: string): INotification; | ||
| info(title: string, content: string): INotification; | ||
| info(title: string, content: string, userData: any): INotification; | ||
| error(title: string): INotification; | ||
| error(title: string, content: string): INotification; | ||
| error(title: string, content: string, userData: any): INotification; | ||
| success(title: string): INotification; | ||
| success(title: string, content: string): INotification; | ||
| success(title: string, content: string, userData: any): INotification; | ||
| warning(title: string): INotification; | ||
| warning(title: string, content: string): INotification; | ||
| warning(title: string, content: string, userData: any): INotification; | ||
| awesomeNotify(type: string, icon: string, title: string, content: string, userData: any): INotification; | ||
| notify(image: string, title: string, content: string, userData: any): INotification; | ||
| makeNotification(type: string, image: string, icon: string, title: string, content: string, userData: any): INotification; | ||
| /* ============ PERSISTENCE METHODS ============ */ | ||
| /* ============ PERSISTENCE METHODS ============ */ | ||
| save(): void; | ||
| restore(): void; | ||
| clear(): void; | ||
| save(): void; | ||
| restore(): void; | ||
| clear(): void; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| { | ||
| "name": "@types/angular-notifications", | ||
| "version": "0.0.32", | ||
| "version": "0.0.33", | ||
| "description": "TypeScript definitions for angular-notifications", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-notifications", | ||
| }, | ||
| "typesPublisherContentHash": "6d58084481c81f23a59f3db963358892b970b597d037f5e192bdd00ef9357360", | ||
| "typeScriptVersion": "3.6" | ||
| "typesPublisherContentHash": "afb8f18c15bc3209675f5fdc521da77af0e86151cfccef43ba36331773e29982", | ||
| "typeScriptVersion": "4.5" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Thu, 08 Jul 2021 22:41:03 GMT | ||
| * Last updated: Fri, 22 Sep 2023 18:11:03 GMT | ||
| * Dependencies: [@types/angular](https://npmjs.com/package/@types/angular) | ||
@@ -14,0 +14,0 @@ * Global values: none |
5875
5.67%77
10%