mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
* Support function links to function overloads. * Improve readability of headings for functions.
1.6 KiB
1.6 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
TransactionResult class
A type for the resolve value of runTransaction().
Signature:
export declare class TransactionResult
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| committed | boolean | Whether the transaction was successfully committed. | |
| snapshot | DataSnapshot | The resulting data snapshot. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| toJSON() | Returns a JSON-serializable representation of this object. |
TransactionResult.committed
Whether the transaction was successfully committed.
Signature:
readonly committed: boolean;
TransactionResult.snapshot
The resulting data snapshot.
Signature:
readonly snapshot: DataSnapshot;
TransactionResult.toJSON()
Returns a JSON-serializable representation of this object.
Signature:
toJSON(): object;
Returns:
object