MCPcopy Create free account
hub / github.com/NativeScript/firebase / transaction

Method transaction

packages/firebase-database/common.ts:49–49  ·  view source on GitHub ↗
(transactionUpdate: (currentData: object) => object | undefined, onComplete?: undefined | ((error: FirebaseError | null, committed: boolean, finalResult: IDataSnapshot) => void), applyLocally?: undefined | false | true)

Source from the content-addressed store, hash-verified

47 setPriority(priority: string | number | null, onComplete?: undefined | ((error: FirebaseError | null) => void)): Promise<void>;
48 setWithPriority(newVal: any, newPriority: string | number | null, onComplete?: undefined | ((error: FirebaseError | null) => void)): Promise<void>;
49 transaction(transactionUpdate: (currentData: object) => object | undefined, onComplete?: undefined | ((error: FirebaseError | null, committed: boolean, finalResult: IDataSnapshot) => void), applyLocally?: undefined | false | true): Promise<TransactionResult>;
50 update(values: { [key: string]: any }, onComplete?: undefined | ((error: FirebaseError | null) => void)): Promise<void>;
51}
52

Callers 1

transactionMethod · 0.65

Implementers 3

Referencepackages/firebase-database/index.andro
Referencepackages/firebase-database/index.ios.t
Referencepackages/firebase-database/index.d.ts

Calls

no outgoing calls

Tested by

no test coverage detected