Update definitions for "i18next-express-middleware", "i18next" and

"connect-timeout".
Remove "tscparams" file for "acc-wizard".
This commit is contained in:
Cyril Schumacher
2016-01-07 16:23:33 +01:00
parent 7e3bc700b3
commit 5f2a5d25bb
6 changed files with 132 additions and 21 deletions
+4 -4
View File
@@ -3,10 +3,10 @@
/// <reference path="../cookie-parser/cookie-parser.d.ts" />
/// <reference path="../express/express.d.ts" />
import express = require("express");
import timeout = require("connect-timeout");
import bodyParser = require("body-parser");
import cookieParser = require("cookie-parser");
import * as express from "express";
import timeout from "connect-timeout";
import * as bodyParser from "body-parser";
import * as cookieParser from "cookie-parser";
// example of using this top-level; note the use of haltOnTimedout
// after every middleware; it will stop the request flow on a timeout
+5 -2
View File
@@ -23,6 +23,10 @@ declare module Express {
declare module "connect-timeout" {
import express = require("express");
/**
* @summary Interface for timeout options.
* @interface
*/
interface TimeoutOptions extends Object {
/**
* @summary Controls if this module will "respond" in the form of forwarding an error.
@@ -31,6 +35,5 @@ declare module "connect-timeout" {
respond: boolean;
}
function timeout(timeout: string, options?: TimeoutOptions): express.RequestHandler;
export = timeout;
export default function timeout(timeout: string, options?: TimeoutOptions): express.RequestHandler;
}