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.29
to
0.0.30
+86
angular-notifications/index.d.ts
// Type definitions for angular-notifications
// Project: https://github.com/DerekRies/angular-notifications
// Definitions by: Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="angular" />
import * as angular from 'angular';
declare module 'angular' {
export namespace notifications {
interface IAnimation {
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;
}
interface INotification {
type: string;
image: string;
icon: string;
title: string;
content: string;
timestamp: string;
userData: string;
}
interface INotificationFactory extends angular.IModule {
/* ========== 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;
/* ============ QUERYING RELATED METHODS ============*/
getAll(): Array<INotification>;
getQueue(): Array<INotification>;
/* ============== 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;
/* ============ PERSISTENCE METHODS ============ */
save(): void;
restore(): void;
clear(): void;
}
}
}
{
"name": "@types/angular-notifications",
"version": "0.0.30",
"description": "TypeScript definitions for angular-notifications",
"license": "MIT",
"author": "Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>",
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {
"@types/angular": "*"
},
"typings": "index.d.ts",
"typesPublisherContentHash": "07ff6e363f699097fb1d9909d49aae40b468a12a7e57ee8e3b17621958cad096"
}
# Installation
> `npm install --save @types/angular-notifications`
# Summary
This package contains type definitions for angular-notifications (https://github.com/DerekRies/angular-notifications).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/angular-notifications
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:22 GMT
* File structure: ModuleAugmentation
* Library Dependencies: angular
* Module Dependencies: angular
* Global values: none
# Credits
These definitions were written by Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>.
{
"authors": "Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [
"angular"
],
"moduleDependencies": [
"angular"
],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryName": "angular-notifications",
"typingsPackageName": "angular-notifications",
"projectName": "https://github.com/DerekRies/angular-notifications",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ModuleAugmentation",
"globals": [],
"declaredModules": [
"angular"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "07ff6e363f699097fb1d9909d49aae40b468a12a7e57ee8e3b17621958cad096"
}
-86
// Type definitions for angular-notifications
// Project: https://github.com/DerekRies/angular-notifications
// Definitions by: Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="angular" />
import * as angular from 'angular';
declare module 'angular' {
export namespace notifications {
interface IAnimation {
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;
}
interface INotification {
type: string;
image: string;
icon: string;
title: string;
content: string;
timestamp: string;
userData: string;
}
interface INotificationFactory extends angular.IModule {
/* ========== 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;
/* ============ QUERYING RELATED METHODS ============*/
getAll(): Array<INotification>;
getQueue(): Array<INotification>;
/* ============== 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;
/* ============ PERSISTENCE METHODS ============ */
save(): void;
restore(): void;
clear(): void;
}
}
}
{
"name": "@types/angular-notifications",
"version": "0.0.29",
"description": "TypeScript definitions for angular-notifications",
"main": "",
"scripts": {},
"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/angular": "1.5.*"
}
}
# Installation
> `npm install --save @types/angular-notifications`
# Summary
This package contains type definitions for angular-notifications (https://github.com/DerekRies/angular-notifications).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/angular-notifications
Additional Details
* Last updated: Thu, 14 Jul 2016 13:52:34 GMT
* File structure: ModuleAugmentation
* Library Dependencies: angular
* Module Dependencies: angular
* Global values: none
# Credits
These definitions were written by Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>.
{
"authors": "Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [
"angular"
],
"moduleDependencies": [
"angular"
],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryName": "angular-notifications",
"typingsPackageName": "angular-notifications",
"projectName": "https://github.com/DerekRies/angular-notifications",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ModuleAugmentation",
"globals": [],
"declaredModules": [
"angular"
],
"files": [
"index.d.ts"
],
"contentHash": "07ff6e363f699097fb1d9909d49aae40b468a12a7e57ee8e3b17621958cad096"
}