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

Method increment

packages/firebase-firestore/index.ios.ts:997–1003  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

995 }
996
997 static increment(n: number): FieldValue {
998 const useDouble = n % 1 === 0;
999 if (useDouble) {
1000 return FieldValue.fromNative(FIRFieldValue.fieldValueForDoubleIncrement(n));
1001 }
1002 return FieldValue.fromNative(FIRFieldValue.fieldValueForIntegerIncrement(n));
1003 }
1004
1005 static serverTimestamp(): FieldValue {
1006 return FieldValue.fromNative(FIRFieldValue.fieldValueForServerTimestamp());

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected