mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 09:49:07 +00:00
Update jquery.pnotify.d.ts
Add type
This commit is contained in:
Vendored
+6
-4
@@ -4,6 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
type NoticeTypeOptions = "notice" | "info" | "success" | "error";
|
||||
type StylingOptions = "brighttheme" | "jqueryui" | "bootstrap2" | "bootstrap3" | "fontawesome";
|
||||
type StateOptions = "initializing" | "opening" | "open" | "closing" | "closed";
|
||||
|
||||
interface PNotifyStack {
|
||||
dir1?: string;
|
||||
@@ -131,7 +134,7 @@ interface PNotifyOptions {
|
||||
/**
|
||||
* What styling classes to use. (Can be either "brighttheme", "jqueryui", "bootstrap2", "bootstrap3", or "fontawesome".)
|
||||
*/
|
||||
styling?: "brighttheme" | "jqueryui" | "bootstrap2" | "bootstrap3" | "fontawesome";
|
||||
styling?: StylingOptions;
|
||||
/**
|
||||
* Additional classes to be added to the notice. (For custom styling.)
|
||||
*/
|
||||
@@ -176,7 +179,7 @@ interface PNotifyOptions {
|
||||
/**
|
||||
* Type of the notice. "notice", "info", "success", or "error".
|
||||
*/
|
||||
type?: "notice" | "info" | "success" | "error";
|
||||
type?: NoticeTypeOptions;
|
||||
/**
|
||||
* Set icon to true to use the default icon for the selected style/type, false for no icon, or a string for your own icon class.
|
||||
*/
|
||||
@@ -257,8 +260,7 @@ interface PNotify {
|
||||
/**
|
||||
* The state can be "initializing", "opening", "open", "closing", and "closed"
|
||||
*/
|
||||
|
||||
state: "initializing" | "opening" | "open" | "closing" | "closed";
|
||||
state?: StateOptions;
|
||||
|
||||
/**
|
||||
* This function is for updating the notice.
|
||||
|
||||
Reference in New Issue
Block a user