Merge pull request #2964 from ruslanmogilevskiy/master

Update i18next.d.ts: Rename the global variable name from i18next to i18n
This commit is contained in:
Masahiro Wakame
2014-10-14 11:20:38 +09:00
2 changed files with 25 additions and 14 deletions
+1 -1
View File
@@ -126,4 +126,4 @@ interface JQuery {
i18n: (options?: I18nextOptions) => void;
}
declare var i18next: I18nextStatic;
declare var i18n: I18nextStatic;
+24 -13
View File
@@ -7,19 +7,29 @@
/// <reference path='../jquery/jquery.d.ts'/>
interface NotyOptions {
layout?: string;
theme?: string;
type?: string;
text?: string;
dismissQueue?: boolean;
template?: string;
animation?: NotyAnimationOptions;
timeout?: number;
force?: boolean;
modal?: boolean;
closeWith?: any[];
callback?: NotyCallbackOptions;
buttons?: any;
layout?: string;
theme?: string;
type?: string;
/** Text to show. Can be html or string. */
text?: string;
/** If you want to use queue feature set this true. */
dismissQueue?: boolean;
/** The note`s optional template like '<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>' */
template?: string;
animation?: NotyAnimationOptions;
/** Delay for closing event. Set false for sticky notifications */
timeout?: any;
/** Adds notification to the beginning of queue when set to true */
force?: boolean;
modal?: boolean;
/** You can set max visible notification for dismissQueue true option */
maxVisible?: number;
/** To close all notifications before show */
killer?: boolean;
closeWith?: any[];
callback?: NotyCallbackOptions;
/** An array of buttons or false to hide them */
buttons?: any;
}
interface NotyAnimationOptions {
@@ -39,6 +49,7 @@ interface NotyCallbackOptions {
interface NotyStatic {
(notyOptions: NotyOptions);
defaults: NotyOptions;
get(id: any);
close(id: any);