From f10d13439e05b33936f6f1e5df9ccf2ae66a3169 Mon Sep 17 00:00:00 2001 From: ido Date: Sun, 23 Jun 2024 17:47:39 +0300 Subject: [PATCH] fix(types): export base engine type --- src/browser.ts | 2 ++ src/index.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/browser.ts b/src/browser.ts index bfb45f0..6c5b32a 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -11,6 +11,7 @@ import EngineError from "./download/download-engine/engine/error/engine-error.js import {FormattedStatus} from "./download/transfer-visualize/format-transfer-status.js"; import DownloadEngineMultiDownload from "./download/download-engine/engine/download-engine-multi-download.js"; import HttpError from "./download/download-engine/streams/download-engine-fetch-stream/errors/http-error.js"; +import BaseDownloadEngine from "./download/download-engine/engine/base-download-engine.js"; export { downloadFileBrowser, @@ -26,6 +27,7 @@ export { }; export type { + BaseDownloadEngine, DownloadFileBrowserOptions, DownloadEngineBrowser, DownloadEngineMultiDownload, diff --git a/src/index.ts b/src/index.ts index 360bb87..3fa5d3c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ import EngineError from "./download/download-engine/engine/error/engine-error.js import {FormattedStatus} from "./download/transfer-visualize/format-transfer-status.js"; import DownloadEngineMultiDownload from "./download/download-engine/engine/download-engine-multi-download.js"; import HttpError from "./download/download-engine/streams/download-engine-fetch-stream/errors/http-error.js"; +import BaseDownloadEngine from "./download/download-engine/engine/base-download-engine.js"; export { @@ -28,7 +29,9 @@ export { EngineError }; + export type { + BaseDownloadEngine, DownloadFileOptions, DownloadSequenceOptions, DownloadEngineNodejs,