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

Method fromNative

packages/firebase-firestore/index.ios.ts:1069–1076  ·  view source on GitHub ↗
(timestamp: FIRTimestamp)

Source from the content-addressed store, hash-verified

1067 }
1068
1069 static fromNative(timestamp: FIRTimestamp) {
1070 if (timestamp instanceof FIRTimestamp) {
1071 const ts = new Timestamp(0, 0, true);
1072 ts._native = timestamp;
1073 return ts;
1074 }
1075 return null;
1076 }
1077
1078 static fromDate(date: Date) {
1079 if (date instanceof Date) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected