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

View File

@@ -4,7 +4,7 @@
/// <reference path="../express/express.d.ts" />
import * as express from "express";
import timeout from "connect-timeout";
import * as timeout from "connect-timeout";
import * as bodyParser from "body-parser";
import * as cookieParser from "cookie-parser";

View File

@@ -23,17 +23,20 @@ declare module Express {
declare module "connect-timeout" {
import express = require("express");
/**
* @summary Interface for timeout options.
* @interface
*/
interface TimeoutOptions extends Object {
module e {
/**
* @summary Controls if this module will "respond" in the form of forwarding an error.
* @type {boolean}
* @summary Interface for timeout options.
* @interface
*/
respond: boolean;
interface TimeoutOptions {
/**
* @summary Controls if this module will "respond" in the form of forwarding an error.
* @type {boolean}
*/
respond?: boolean;
}
}
export default function timeout(timeout: string, options?: TimeoutOptions): express.RequestHandler;
function e(timeout: string, options?: e.TimeoutOptions): express.RequestHandler;
export = e;
}