mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
chore(express-partial-content): move source files
This commit is contained in:
22
packages/express-partial-content/src/Content.ts
Normal file
22
packages/express-partial-content/src/Content.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user