mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update definitions for "i18next" and "i18next-sprintf-postprecessor".
This commit is contained in:
1 parent
087195bc97
commit
61b120cc79
2 files changed
+7
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
Vendored
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user