()
| 1149 | } |
| 1150 | |
| 1151 | commit(): Promise<void> { |
| 1152 | return new Promise((resolve, reject) => { |
| 1153 | this.native.commitWithCompletion((error) => { |
| 1154 | if (error) { |
| 1155 | reject(FirebaseError.fromNative(error)); |
| 1156 | } else { |
| 1157 | resolve(); |
| 1158 | } |
| 1159 | }); |
| 1160 | }); |
| 1161 | } |
| 1162 | |
| 1163 | delete(documentRef: DocumentReference): WriteBatch { |
| 1164 | return WriteBatch.fromNative(this.native.deleteDocument(documentRef.native)); |
nothing calls this directly
no test coverage detected