chore(express-partial-content): move source files

This commit is contained in:
Elian Doran
2025-05-03 01:21:46 +03:00
parent 24224d2c72
commit adc5e8929b
13 changed files with 7 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
import { Range } from "./Range";
import { Stream } from "stream";
export interface Content {
/**
* Returns a readable stream based on the provided range (optional).
* @param {Range} range The start-end range of stream data.
* @returns {Stream} A readable stream
*/
getStream(range?: Range): Stream;
/**
* Total size of the content
*/
readonly totalSize: number;
/**
* Mime type to be sent in Content-Type header
*/
readonly mimeType: string;
/**
* File name to be sent in Content-Disposition header
*/
readonly fileName: string;
};