Files
DefinitelyTyped/content-disposition/index.d.ts
2017-01-12 13:28:39 -08:00

22 lines
684 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 {
export interface ContentDisposition {
type: string;
parameters: any;
}
export interface Options {
type?: string;
fallback?: string | boolean;
}
export function parse(contentDispositionHeader: string): ContentDisposition;
}
declare function contentDisposition(filename?: string, options?: contentDisposition.Options): string;
export = contentDisposition;