@types/hijackresponse
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

Installation

npm install --save @types/hijackresponse

Summary

This package contains type definitions for hijackresponse (https://github.com/gustavnikolaj/hijackresponse).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hijackresponse.

index.d.ts

import express = require("express");
import { Readable } from "stream";

declare namespace e {
    interface HijackedResponse<ResBody = any>
        extends express.Response<ResBody>, Omit<Readable, keyof express.Response>
    {
        destroyHijacked: () => boolean;
        unhijack: () => express.Response;
    }
}

declare function e<ResBody = any>(
    res: express.Response<ResBody>,
    callback: (err: null, res: e.HijackedResponse<ResBody>) => void,
): void;
export = e;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Matthias Kunnen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hijackresponse

Weekly Downloads

305

Version

4.0.3

License

MIT

Unpacked Size

3.66 kB

Total Files

5

Last publish

Collaborators

  • types