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

1.0.4 • Public • Published

Installation

npm install --save @types/set-link

Summary

This package contains type definitions for set-link (https://github.com/bergos/set-link).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/set-link.

index.d.ts

import { RequestHandler, Response } from "express";

declare module "express-serve-static-core" {
    interface Response {
        setLink(link: string, rel: string): void;
    }
}

declare const middleware: RequestHandler & { attach(res: Response): void };

export = middleware;

Additional Details

Credits

These definitions were written by tpluscode.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/set-link

Weekly Downloads

65

Version

1.0.4

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types