UNPKG

893 BMarkdownView Raw
1# Installation
2> `npm install --save @types/vary`
3
4# Summary
5This package contains type definitions for vary (https://github.com/jshttp/vary#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vary.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vary/index.d.ts)
10````ts
11/// <reference types="node" />
12import { ServerResponse } from "http";
13export = vary;
14
15declare function vary(res: ServerResponse, field: string | string[]): void;
16
17declare namespace vary {
18 function append(header: string, field: string | string[]): string;
19}
20
21````
22
23### Additional Details
24 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
25 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
26
27# Credits
28These definitions were written by [BendingBender](https://github.com/BendingBender).
29
\No newline at end of file