Skip to content

Commit

Permalink
fix(firestore, web): change interop type of updateDoc to force the JS…
Browse files Browse the repository at this point in the history
… interop to keep the value (#10491)
  • Loading branch information
Lyokone committed Feb 20, 2023
1 parent 3603654 commit c46c976
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,9 @@ external bool snapshotEqual(
@JS()
external PromiseJsImpl<void> terminate(FirestoreJsImpl firestore);

// Object type is forced to prevent JS interop from ignoring the value
@JS()
external PromiseJsImpl<void> updateDoc(
DocumentReferenceJsImpl reference,
/*string | FieldPath*/ dynamic field,
dynamic value, [
dynamic moreFieldsAndValues,
]);
external Object get updateDoc;

@JS()
external PromiseJsImpl<void> waitForPendingWrites(FirestoreJsImpl firestore);
Expand Down

0 comments on commit c46c976

Please sign in to comment.