Update definitions for "i18next" and "i18next-sprintf-postprecessor".

This commit is contained in:
Cyril Schumacher
2016-01-14 19:51:12 +01:00
parent 087195bc97
commit 61b120cc79
2 changed files with 7 additions and 3 deletions
@@ -9,9 +9,12 @@
declare module "i18next-sprintf-postprocessor" {
import i18next = require("i18next");
export default interface i18nextSprintfPostProcessor {
interface i18nextSprintfPostProcessor {
(): any;
process(value: any, key: string, options: Object): void;
overloadTranslationOptionHandler(args: Array<any>): void;
}
//export default function sprintf(): any;
var sprintf: i18nextSprintfPostProcessor;
export default sprintf;
}
+2 -1
View File
@@ -31,7 +31,8 @@ interface I18nTranslateOptions extends I18nextOptions {
}
interface i18nextSprintfPostProcessorStatic {
overloadTranslationOptionHandler: any;
overloadTranslationOptionHandler(args: Array<any>): void;
process(value: any, key: string, options: Object): void;
}
interface I18nextOptions extends i18nextSprintfPostProcessorStatic {