ios-dev/comments/Home/node_modules/@tinyhttp/content-disposition/dist/index.d.ts

21 lines
569 B
TypeScript
Raw Permalink Normal View History

2024-03-11 14:47:28 +03:00
export declare class ContentDisposition {
type: string;
parameters: Record<string, unknown>;
constructor(type: string, parameters: Record<string, unknown>);
}
/**
* Create an attachment Content-Disposition header.
*
* @param filename file name
* @param options
*/
export declare function contentDisposition(filename?: string, options?: Partial<{
type: string;
fallback: string | boolean;
}>): string;
/**
* Parse Content-Disposition header string.
* @param header string
*/
export declare function parse(header: string): ContentDisposition;