@types/angular-ui-notification
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

Installation

npm install --save @types/angular-ui-notification

Summary

This package contains type definitions for angular-ui-notification (https://github.com/alexcrack/angular-ui-notification).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-ui-notification.

index.d.ts

/// <reference types="angular" />

import * as angular from "angular";

declare module "angular" {
    export namespace uiNotification {
        type XPosition = "right" | "left" | "center";
        type YPosition = "top" | "bottom";

        type MessageType = "primary" | "info" | "success" | "warning" | "error";

        interface IGlobalMessageOptions {
            delay?: number | undefined;
            startTop?: number | undefined;
            startRight?: number | undefined;
            verticalSpacing?: number | undefined;
            horizontalSpacing?: number | undefined;
            positionX?: XPosition | undefined;
            positionY?: YPosition | undefined;
            replaceMessage?: boolean | undefined;
            templateUrl?: string | undefined;
            onClose?: ((element: any) => any) | undefined;
            closeOnClick?: boolean | undefined;
            maxCount?: number | undefined;
        }

        interface IMessageOptions {
            title?: string | undefined;
            message?: string | undefined;
            templateUrl?: string | undefined;
            delay?: number | undefined;
            type?: MessageType | undefined;
            positionX?: XPosition | undefined;
            positionY?: YPosition | undefined;
            replaceMessage?: boolean | undefined;
            closeOnClick?: boolean | undefined;
        }

        interface INotificationScope {
            kill(isHard: boolean): void;
        }

        interface INotificationProvider {
            setOptions(options: IGlobalMessageOptions): void;
        }

        type Message = string | IMessageOptions;

        interface INotificationService {
            primary(message: Message): IPromise<INotificationScope>;
            info(message: Message): IPromise<INotificationScope>;
            success(message: Message): IPromise<INotificationScope>;
            warning(message: Message): IPromise<INotificationScope>;
            error(message: Message): IPromise<INotificationScope>;

            clearAll(): void;

            (message: Message, type?: MessageType): IPromise<INotificationScope>;
        }
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Kamil Rojewski.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.6101ts3.6
0.0.6101ts3.7
0.0.6101ts3.8
0.0.6101ts3.9
0.0.6101ts4.0
0.0.6101ts4.1
0.0.6101ts4.2
0.0.6101ts4.3
0.0.6101ts4.4
0.0.985ts5.8
0.0.985ts5.7
0.0.985latest
0.0.985ts4.5
0.0.985ts4.6
0.0.985ts4.7
0.0.985ts4.8
0.0.985ts4.9
0.0.985ts5.0
0.0.985ts5.1
0.0.985ts5.2
0.0.985ts5.3
0.0.985ts5.4
0.0.985ts5.5
0.0.985ts5.6
0.0.985ts5.9
0.0.444ts2.3
0.0.444ts2.4
0.0.444ts2.5
0.0.444ts2.6
0.0.444ts2.7
0.0.444ts2.8
0.0.444ts2.9
0.0.444ts3.0
0.0.444ts3.1
0.0.444ts3.2
0.0.444ts3.3
0.0.444ts3.4
0.0.444ts3.5
0.0.31ts2.0
0.0.31ts2.1
0.0.31ts2.2

Version History

VersionDownloads (Last 7 Days)Published
0.0.985
0.0.81
0.0.71
0.0.6101
0.0.51
0.0.444
0.0.31
0.0.21
0.0.10

Package Sidebar

Install

npm i @types/angular-ui-notification

Weekly Downloads

235

Version

0.0.9

License

MIT

Unpacked Size

7.07 kB

Total Files

5

Last publish

Collaborators

  • types