diff --git a/lib/index.d.ts b/lib/index.d.ts index 5e8aa2d7..154328c0 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -50,7 +50,7 @@ declare interface File { /** Location of the uploaded file */ readonly path: string; /** A Stream of the entire file */ - readonly stream: Readable; + toStream(): Readable; } declare interface MulterOptions { diff --git a/package-lock.json b/package-lock.json index 26feca6b..04e8fd3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2797,11 +2797,6 @@ "readable-stream": "^2.0.0" } }, - "fs-capacitor": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/fs-capacitor/-/fs-capacitor-6.1.0.tgz", - "integrity": "sha512-YsKGCLAB40P3OKeciIa7cKzt7WkY8QT9ETa2wVIG3fQDHW2h3xtRo0770lUIbPrjCr5Sa+zFhixNJ+2xNxaraQ==" - }, "fs-extra": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", diff --git a/package.json b/package.json index 726477bd..a39b6214 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "dependencies": { "append-field": "^1.0.0", "busboy": "^0.3.1", - "fs-capacitor": "^6.1.0", "fs-temp": "^1.1.1", "on-finished": "^2.3.0", "pify": "^4.0.1",