Installation
npm install --save @types/content-disposition
Summary
This package contains type definitions for content-disposition (https://github.com/jshttp/content-disposition).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-disposition.
declare namespace contentDisposition {
interface ContentDisposition {
type: "attachment" | "inline" | string;
parameters: { [key: string]: string };
}
interface Options {
type?: "attachment" | "inline" | string | undefined;
fallback?: string | boolean | undefined;
}
function parse(contentDispositionHeader: string): ContentDisposition;
}
declare function contentDisposition(filename?: string, options?: contentDisposition.Options): string;
export = contentDisposition;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Stefan Reichel, and Piotr Błażejewicz.