Add options for "express-brute".

Add definition for "i18next-sprintf-postprocessor".
This commit is contained in:
Cyril Schumacher
2016-01-14 19:17:06 +01:00
parent 5f2a5d25bb
commit 257f49655e
4 changed files with 118 additions and 68 deletions

View File

@@ -0,0 +1,10 @@
///<reference path="i18next-sprintf-postProcessor.d.ts"/>
import * as i18next from "i18next";
import sprintf from "i18next-sprintf-postprocessor";
function initTest() {
const i18nextOptions = {};
i18next.use(sprintf).init(i18nextOptions);
i18next.init({ overloadTranslationOptionHandler: sprintf.overloadTranslationOptionHandler });
}

View File

@@ -0,0 +1,17 @@
// 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/borisyankov/DefinitelyTyped
///<reference path="../express/express.d.ts"/>
///<reference path="../i18next/i18next.d.ts"/>
declare module "i18next-sprintf-postprocessor" {
import i18next = require("i18next");
export default interface i18nextSprintfPostProcessor {
process(value: any, key: string, options: Object): void;
overloadTranslationOptionHandler(args: Array<any>): void;
}
//export default function sprintf(): any;
}