|
1 | 1 | export type IncomingMessage = import("../index.js").IncomingMessage; |
2 | 2 | export type ServerResponse = import("../index.js").ServerResponse; |
| 3 | +export type OutputFileSystem = import("../index").OutputFileSystem; |
3 | 4 | export type ExpectedIncomingMessage = { |
4 | 5 | getHeader?: ((name: string) => string | string[] | undefined) | undefined; |
5 | 6 | getMethod?: (() => string | undefined) | undefined; |
@@ -46,6 +47,7 @@ export function getStatusCode< |
46 | 47 | >(res: Response): number; |
47 | 48 | /** @typedef {import("../index.js").IncomingMessage} IncomingMessage */ |
48 | 49 | /** @typedef {import("../index.js").ServerResponse} ServerResponse */ |
| 50 | +/** @typedef {import("../index").OutputFileSystem} OutputFileSystem */ |
49 | 51 | /** |
50 | 52 | * @typedef {Object} ExpectedIncomingMessage |
51 | 53 | * @property {(name: string) => string | string[] | undefined} [getHeader] |
@@ -159,14 +161,14 @@ export function finish< |
159 | 161 | >(res: Response, data?: string | Buffer | undefined): void; |
160 | 162 | /** |
161 | 163 | * @param {string} filename |
162 | | - * @param {import("../index").OutputFileSystem} outputFileSystem |
| 164 | + * @param {OutputFileSystem} outputFileSystem |
163 | 165 | * @param {number} start |
164 | 166 | * @param {number} end |
165 | 167 | * @returns {{ bufferOrStream: (Buffer | import("fs").ReadStream), byteLength: number }} |
166 | 168 | */ |
167 | 169 | export function createReadStreamOrReadFileSync( |
168 | 170 | filename: string, |
169 | | - outputFileSystem: import("../index").OutputFileSystem, |
| 171 | + outputFileSystem: OutputFileSystem, |
170 | 172 | start: number, |
171 | 173 | end: number, |
172 | 174 | ): { |
|
0 commit comments