forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18next-sprintf-postprocessor.d.ts
34 lines (28 loc) · 1017 Bytes
/
i18next-sprintf-postprocessor.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Type definitions for i18next-sprintf-postProcessor
// Project: https://github.com/i18next/i18next-sprintf-postProcessor
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="../i18next/i18next.d.ts"/>
declare namespace I18next {
interface I18n {
t(key: string, ...args: any[]): string;
}
}
declare module "i18next-sprintf-postprocessor" {
import i18next = require("i18next");
interface I18nextSprintfPostProcessor {
name: string;
type: string;
process(value: any, key: string, options: any): any;
overloadTranslationOptionHandler(args: string[]): {
postProcess: "sprintf",
sprintf: string[]
};
}
var sprintf: I18nextSprintfPostProcessor;
export = sprintf;
}
declare module "i18next-sprintf-postprocessor/dist/commonjs" {
import sprintf = require("i18next-sprintf-postprocessor");
export default sprintf;
}