mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-28 19:52:53 +00:00
22 lines
663 B
TypeScript
22 lines
663 B
TypeScript
// Type definitions for content-disposition 0.5
|
|
// Project: https://github.com/jshttp/content-disposition
|
|
// Definitions by: Stefan Reichel <https://github.com/bomret>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace contentDisposition {
|
|
interface ContentDisposition {
|
|
type: string;
|
|
parameters: any;
|
|
}
|
|
|
|
interface Options {
|
|
type?: string;
|
|
fallback?: string | boolean;
|
|
}
|
|
|
|
function parse(contentDispositionHeader: string): ContentDisposition;
|
|
}
|
|
|
|
declare function contentDisposition(filename?: string, options?: contentDisposition.Options): string;
|
|
export = contentDisposition;
|