Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@types/angular-notifications

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/angular-notifications - npm Package Compare versions

Comparing version
0.0.22-alpha
to
0.0.23-alpha
+64
-60
index.d.ts

@@ -8,76 +8,80 @@ // Type definitions for angular-notifications

declare namespace angular.notifications {
import * as angular from 'angularjs';
interface IAnimation {
duration: number;
enabled: boolean;
}
declare module 'angularjs' {
export namespace notifications {
interface ISettings {
info: IAnimation;
warning: IAnimation;
error: IAnimation;
success: IAnimation;
progress: IAnimation;
custom: IAnimation;
details: boolean;
localStorage: boolean;
html5Mode: boolean;
html5DefaultIcon: string;
}
interface IAnimation {
duration: number;
enabled: boolean;
}
interface INotification {
type: string;
image: string;
icon: string;
title: string;
content: string;
timestamp: string;
userData: string;
}
interface ISettings {
info: IAnimation;
warning: IAnimation;
error: IAnimation;
success: IAnimation;
progress: IAnimation;
custom: IAnimation;
details: boolean;
localStorage: boolean;
html5Mode: boolean;
html5DefaultIcon: string;
}
interface INotificationFactory extends angular.IModule {
interface INotification {
type: string;
image: string;
icon: string;
title: string;
content: string;
timestamp: string;
userData: string;
}
/* ========== SETTINGS RELATED METHODS =============*/
interface INotificationFactory extends angular.IModule {
disableHtml5Mode(): void;
disableType(notificationType: string): void;
enableHtml5Mode(): void;
enableType(notificationType: string): void;
getSettings(): ISettings;
toggleType(notificationType: string): void;
toggleHtml5Mode(): void;
requestHtml5ModePermissions(): boolean;
/* ========== SETTINGS RELATED METHODS =============*/
/* ============ QUERYING RELATED METHODS ============*/
disableHtml5Mode(): void;
disableType(notificationType: string): void;
enableHtml5Mode(): void;
enableType(notificationType: string): void;
getSettings(): ISettings;
toggleType(notificationType: string): void;
toggleHtml5Mode(): void;
requestHtml5ModePermissions(): boolean;
getAll(): Array<INotification>;
getQueue(): Array<INotification>;
/* ============ QUERYING RELATED METHODS ============*/
/* ============== NOTIFICATION METHODS ==============*/
getAll(): Array<INotification>;
getQueue(): Array<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;
/* ============== NOTIFICATION METHODS ==============*/
/* ============ PERSISTENCE 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;
save(): void;
restore(): void;
clear(): void;
}
/* ============ PERSISTENCE METHODS ============ */
save(): void;
restore(): void;
clear(): void;
}
}
}
{
"name": "@types/angular-notifications",
"version": "0.0.22-alpha",
"version": "0.0.23-alpha",
"description": "TypeScript definitions for angular-notifications",

@@ -8,7 +8,11 @@ "main": "",

"author": "Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"license": "MIT",
"typings": "index.d.ts",
"dependencies": {
"@types/angularjs": "*"
"@types/angularjs": "1.5.*"
}
}

@@ -11,6 +11,6 @@ # Installation

Additional Details
* Last updated: Wed, 25 May 2016 04:19:57 GMT
* File structure: Global
* Last updated: Fri, 01 Jul 2016 18:42:17 GMT
* File structure: ModuleAugmentation
* Library Dependencies: angularjs
* Module Dependencies: none
* Module Dependencies: angularjs
* Global values: none

@@ -17,0 +17,0 @@

@@ -7,3 +7,5 @@ {

],
"moduleDependencies": [],
"moduleDependencies": [
"angularjs"
],
"libraryMajorVersion": "0",

@@ -16,9 +18,11 @@ "libraryMinorVersion": "0",

"sourceBranch": "types-2.0",
"kind": "Global",
"kind": "ModuleAugmentation",
"globals": [],
"declaredModules": [],
"declaredModules": [
"angularjs"
],
"files": [
"index.d.ts"
],
"contentHash": "1e3ca6b229bc6f01dba09104b0e0629c9b89ac81d3ba87a3a1e87625fb9e4306"
"contentHash": "dd914e108407d010a807810dcb589369a5787c5b73b118b54c93753148da23f2"
}