File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -911,8 +911,6 @@ export class BulkWriteShimOperation extends AbstractOperation {
911
911
/** @public */
912
912
export abstract class BulkOperationBase {
913
913
isOrdered : boolean ;
914
- // Declare dynamically assigned property
915
- declare length : number ;
916
914
/** @internal */
917
915
s : BulkOperationPrivate ;
918
916
operationId ?: number ;
@@ -1180,6 +1178,10 @@ export abstract class BulkOperationBase {
1180
1178
) ;
1181
1179
}
1182
1180
1181
+ get length ( ) : number {
1182
+ return this . s . currentIndex ;
1183
+ }
1184
+
1183
1185
get bsonOptions ( ) : BSONSerializeOptions {
1184
1186
return this . s . bsonOptions ;
1185
1187
}
@@ -1276,13 +1278,6 @@ export abstract class BulkOperationBase {
1276
1278
}
1277
1279
}
1278
1280
1279
- Object . defineProperty ( BulkOperationBase . prototype , 'length' , {
1280
- enumerable : true ,
1281
- get ( ) {
1282
- return this . s . currentIndex ;
1283
- }
1284
- } ) ;
1285
-
1286
1281
function isInsertBatch ( batch : Batch ) : boolean {
1287
1282
return batch . batchType === BatchType . INSERT ;
1288
1283
}
You can’t perform that action at this time.
0 commit comments