mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
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:
@@ -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";
|
||||
|
||||
|
||||
21
connect-timeout/connect-timeout.d.ts
vendored
21
connect-timeout/connect-timeout.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user