-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Closed
Description
- I tried using the
@types/mongodbpackage and had problems. - I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
- I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
- Mention the authors (see
Definitions by:inindex.d.ts) so they can respond.- Authors: @CaselIT @alanmarcell @Dante-101 @mcortesi @EnricoPicci @AJCStriker @julien-c @daprahamian @Denys-Bushulyak @sindbach @geraldinelemeur @various89 @angela-1 @lirbank @hector7 @floric @erikc5000 @Manc @jloveridge @Ranguna @HosseinAgha @albertossilva @peterblazejewicz @LinusU @taxilian @xamgore @avaly
Hi, this is a follow up issue for #44360. The callback definition for abort is missing an error parameter, which may be present if there was an error removing chunks.
https://mongodb.github.io/node-mongodb-native/3.6/api/GridFSBucketWriteStream.html#abort
https://mongodb.github.io/node-mongodb-native/3.6/api/GridFSBucket.html#~errorCallback
https://mongodb.github.io/node-mongodb-native/3.6/api/lib_gridfs-stream_upload.js.html#line112
const stream = bucket.openUploadStreamWithId(...);
stream.abort((error) => {});Argument of type '(error: any) => void' is not assignable to parameter of type '() => void'.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels