@@ -52,7 +52,7 @@ const api = [
52
52
{ className : 'OrderedBulkOperation' , method : 'execute' , returnType : 'Promise<BulkWriteResult>' } ,
53
53
{ className : 'UnorderedBulkOperation' , method : 'execute' , returnType : 'Promise<BulkWriteResult>' } ,
54
54
55
- { className : 'ChangeStream' , method : 'close' , returnType : 'Promise<void>' } ,
55
+ { className : 'ChangeStream' , method : 'close' , returnType : 'Promise<void>' , possibleCallbackPositions : [ 1 , 2 ] } ,
56
56
{ className : 'ChangeStream' , method : 'hasNext' , returnType : 'Promise<boolean>' } ,
57
57
{ className : 'ChangeStream' , method : 'next' , returnType : 'Promise<TChange>' } ,
58
58
{ className : 'ChangeStream' , method : 'tryNext' , returnType : 'Promise<Document | null>' } ,
@@ -117,9 +117,9 @@ const api = [
117
117
{ className : 'FindCursor' , method : 'count' , returnType : 'Promise<number>' } ,
118
118
{ className : 'FindCursor' , method : 'explain' , returnType : 'Promise<Document>' } ,
119
119
120
- { className : 'GridFSBucket' , method : 'delete' , returnType : 'Promise<void>' , possibleCallbackPositions : [ 1 ] } ,
121
- { className : 'GridFSBucket' , method : 'drop' , returnType : 'Promise<void>' } ,
122
- { className : 'GridFSBucket' , method : 'rename' , returnType : 'Promise<void>' , possibleCallbackPositions : [ 1 ] } ,
120
+ { className : 'GridFSBucket' , method : 'delete' , returnType : 'Promise<void>' , possibleCallbackPositions : [ 1 , 2 ] } ,
121
+ { className : 'GridFSBucket' , method : 'drop' , returnType : 'Promise<void>' , possibleCallbackPositions : [ 1 , 2 ] } ,
122
+ { className : 'GridFSBucket' , method : 'rename' , returnType : 'Promise<void>' , possibleCallbackPositions : [ 1 , 2 ] } ,
123
123
{ className : 'GridFSBucket' , method : 'openUploadStream' , returnType : 'GridFSBucketWriteStream' , notAsync : true } ,
124
124
{ className : 'GridFSBucket' , method : 'openUploadStreamWithId' , returnType : 'GridFSBucketWriteStream' , notAsync : true } ,
125
125
{ className : 'GridFSBucket' , method : 'find' , returnType : 'FindCursor' , notAsync : true } ,
@@ -141,7 +141,7 @@ const api = [
141
141
] ;
142
142
143
143
module . exports . api = api ;
144
- module . exports . classNames = new Set ( api . map ( ( { className} ) => className ) )
144
+ module . exports . classNames = new Set ( api . map ( ( { className } ) => className ) )
145
145
module . exports . classNameToMethodList = new Map ( api . map ( ( api , _ , array ) =>
146
146
[ api . className , sorted ( Array . from ( new Set ( Array . from ( array . filter ( v => v . className === api . className ) , method => method ) ) ) , ( a , b ) => byStrings ( a . method , b . method ) ) ]
147
147
) ) ;
0 commit comments