0.0.39 • Published 6 months ago
@types/connect-timeout v0.0.39
Installation
npm install --save @types/connect-timeout
Summary
This package contains type definitions for connect-timeout (https://github.com/expressjs/timeout).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-timeout.
index.d.ts
// Type definitions for connect-timeout
// Project: https://github.com/expressjs/timeout
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="express" />
declare namespace Express {
export interface Request {
/**
* @summary Clears the timeout on the request.
*/
clearTimeout(): void;
/**
* @summary true if timeout fired; false otherwise.
*/
timedout: boolean;
}
}
declare module "connect-timeout" {
import express = require("express");
namespace e {
/**
* @summary Interface for timeout options.
* @interface
*/
interface TimeoutOptions {
/**
* @summary Controls if this module will "respond" in the form of forwarding an error.
* @type {boolean}
*/
respond?: boolean | undefined;
}
}
/**
* @summary Returns middleware that times out in time milliseconds. time can also be a string accepted by the ms module. On timeout, req will emit "timeout".
*/
function e(time: number | string, options?: e.TimeoutOptions): express.RequestHandler;
export = e;
}
Additional Details
- Last updated: Tue, 28 Dec 2021 08:01:22 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Cyril Schumacher.
0.0.38
7 months ago
0.0.39
6 months ago
0.0.37
1 year ago
0.0.36
2 years ago
0.0.35
3 years ago
0.0.34
5 years ago
0.0.33
7 years ago
0.0.32
7 years ago
0.0.31
8 years ago
0.0.30
8 years ago
0.0.29
8 years ago
0.0.28
8 years ago
0.0.27-alpha
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.16-alpha
8 years ago
0.0.15-alpha
8 years ago