mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add options for "express-brute".
Add definition for "i18next-sprintf-postprocessor".
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
17
i18next-sprintf-postprocessor/i18next-sprintf-postProcessor.d.ts
vendored
Normal file
17
i18next-sprintf-postprocessor/i18next-sprintf-postProcessor.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user