From 61b120cc79f2dd3ab8cac60ba922e5839f6a42cd Mon Sep 17 00:00:00 2001 From: Cyril Schumacher Date: Thu, 14 Jan 2016 19:51:12 +0100 Subject: [PATCH] Update definitions for "i18next" and "i18next-sprintf-postprecessor". --- .../i18next-sprintf-postprocessor.d.ts | 7 +++++-- i18next/i18next.d.ts | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor.d.ts b/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor.d.ts index 838cd0311..7983e46aa 100644 --- a/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor.d.ts +++ b/i18next-sprintf-postprocessor/i18next-sprintf-postprocessor.d.ts @@ -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): void; } - //export default function sprintf(): any; + + var sprintf: i18nextSprintfPostProcessor; + export default sprintf; } diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index 4a20978ff..9bd5aec50 100644 --- a/i18next/i18next.d.ts +++ b/i18next/i18next.d.ts @@ -31,7 +31,8 @@ interface I18nTranslateOptions extends I18nextOptions { } interface i18nextSprintfPostProcessorStatic { - overloadTranslationOptionHandler: any; + overloadTranslationOptionHandler(args: Array): void; + process(value: any, key: string, options: Object): void; } interface I18nextOptions extends i18nextSprintfPostProcessorStatic {