npm.io
1.0.4 • Published 2 years ago

@types/set-link

Licence
MIT
Version
1.0.4
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.