Last active
May 9, 2020 11:50
-
-
Save haldarmahesh/81c20f7a755032ec16ce47859a95bf04 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
interface ContactTable { | |
name: String; | |
} | |
interface ContactModel { | |
id: String; | |
name: String; | |
phoneNumber: String; | |
profilePicture: String; | |
createdAt: Date; | |
updatedAt: Date; | |
} | |
class ContactLocalDatabase extends BaseLocalDataBase<ContactTable, ContactModel> { | |
// overriden function | |
getFormattedData(): ContactModel[] { | |
// format and return data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment