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.
declare namespace Express {
export interface Request {
clearTimeout(): void;
timedout: boolean;
}
}
declare module "connect-timeout" {
import express = require("express");
namespace e {
interface TimeoutOptions {
respond?: boolean | undefined;
}
}
function e(time: number | string, options?: e.TimeoutOptions): express.RequestHandler;
export = e;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/express
Credits
These definitions were written by Cyril Schumacher.