@types/jquery.growl
TypeScript icon, indicating that this package has built-in type declarations

1.3.7 • Public • Published

Installation

npm install --save @types/jquery.growl

Summary

This package contains type definitions for jquery.growl (https://github.com/ksylvest/jquery-growl#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.growl.

index.d.ts

/// <reference types="jquery" />

declare namespace growl {
    interface Options {
        // Message
        message: string;
        // Title
        title?: string | undefined;
        // URL
        url?: string | undefined;
        // while hovering over the alert, prevent it from being dismissed (true | false - default: true)
        delayOnHover?: boolean | undefined;
        // the duration (in milliseconds) for which the alert is displayed (default: 3200)
        duration?: number | undefined;
        // whether the alert should be fixed rather than auto- dismissed(true | false - default: false)
        fixed?: boolean | undefined;
        // the alert's position ('tl' | 'tr' | 'bl' | 'br' | 'tc' | 'bc' - default: 'tr')
        location?: string | undefined;
        // the alert's size ('small' | 'medium' | 'large' - default: 'medium')
        size?: string | undefined;
        // the alert's style ('default' | 'error' | 'notice' | 'warning' - default: 'default')
        style?: string | undefined;
    }
}

interface growl {
    (options: growl.Options): void;
    error(options: growl.Options): void;
    notice(options: growl.Options): void;
    warning(options: growl.Options): void;
}

interface JQueryStatic {
    growl: growl;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Amir.h Yeganemehr.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jquery.growl

Weekly Downloads

22,959

Version

1.3.7

License

MIT

Unpacked Size

5.19 kB

Total Files

5

Last publish

Collaborators

  • types