Fix error for "connect-timeout".

Add module to extend interface for "i18next".
Add default export for "express-brute-memcached".
Remove unnecessary interface for "i18next-express-middleware".
Add definitions for "i18next-browser-languagedetector" and "i18next-node-fs-backend".
This commit is contained in:
Cyril Schumacher
2016-02-29 18:33:35 +01:00
parent c0d876601e
commit 36e064e2cb
11 changed files with 279 additions and 35 deletions
@@ -6,6 +6,17 @@
///<reference path="../express/express.d.ts"/>
///<reference path="../i18next/i18next.d.ts"/>
declare module I18next {
interface I18nextOptions extends i18nextSprintfPostProcessor.I18nextOptions {}
}
declare module i18nextSprintfPostProcessor {
interface I18nextOptions {
overloadTranslationOptionHandler?(args: Array<any>): void;
process?(value: any, key: string, options: Object): void;
}
}
declare module "i18next-sprintf-postprocessor" {
import i18next = require("i18next");