forked from compnerd/swift-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
@_exported | ||
import firebase | ||
@_spi(Error) | ||
import FirebaseCore | ||
|
||
import CxxShim | ||
import Foundation | ||
|
||
public typealias DocumentChange = firebase.firestore.DocumentChange | ||
public typealias DocumentChangeType = firebase.firestore.DocumentChange.`Type` | ||
|
||
extension DocumentChange { | ||
public var type: DocumentChangeType { | ||
swift_firebase.swift_cxx_shims.firebase.firestore.document_change_type(self) | ||
} | ||
|
||
public var document: DocumentSnapshot { | ||
swift_firebase.swift_cxx_shims.firebase.firestore.document_change_document(self) | ||
} | ||
|
||
public var oldIndex: UInt { | ||
UInt(swift_firebase.swift_cxx_shims.firebase.firestore.document_change_old_index(self)) | ||
} | ||
|
||
public var newIndex: UInt { | ||
UInt(swift_firebase.swift_cxx_shims.firebase.firestore.document_change_new_index(self)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters