DefinitelyTyped/types/content-disposition/index.d.ts
2017-03-24 14:27:52 -07:00

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;