You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -140,22 +139,17 @@ export class GridFSBucket extends TypedEventEmitter<GridFSBucketEvents> {
140
139
*
141
140
* @param id - The id of the file doc
142
141
*/
143
-
delete(id: ObjectId): Promise<void>;
144
-
/** @deprecated Callbacks are deprecated and will be removed in the next major version. See [mongodb-legacy](https://github.com/mongodb-js/nodejs-mongodb-legacy) for migration assistance */
/** @deprecated Callbacks are deprecated and will be removed in the next major version. See [mongodb-legacy](https://github.com/mongodb-js/nodejs-mongodb-legacy) for migration assistance */
thrownewMongoRuntimeError(`File with id ${id} not found`);
204
+
}
216
205
}
217
206
218
207
/** Removes this bucket's files collection, followed by its chunks collection. */
219
-
drop(): Promise<void>;
220
-
/** @deprecated Callbacks are deprecated and will be removed in the next major version. See [mongodb-legacy](https://github.com/mongodb-js/nodejs-mongodb-legacy) for migration assistance */
* Places this write stream into an aborted state (all future writes fail)
146
146
* and deletes all chunks that have already been written.
147
-
*
148
-
* @param callback - called when chunks are successfully removed or error occurred
149
147
*/
150
-
abort(): Promise<void>;
151
-
/** @deprecated Callbacks are deprecated and will be removed in the next major version. See [mongodb-legacy](https://github.com/mongodb-js/nodejs-mongodb-legacy) for migration assistance */
0 commit comments