mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update definitions for "i18next-express-middleware", "i18next" and
"connect-timeout". Remove "tscparams" file for "acc-wizard".
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+5
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user