Update jquery.pnotify.d.ts

Add type
This commit is contained in:
Moes
2016-05-11 14:01:51 +10:00
parent e397666170
commit c5bcfd3d08
+6 -4
View File
@@ -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.