Created
September 20, 2022 16:12
-
-
Save newerton/1cc798800e06e8952dba870cd6f7a631 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
export abstract class IGenericRepository<T> { | |
abstract getAll(): Promise<T[]>; | |
abstract get(id: string): Promise<T>; | |
abstract create(item: T): Promise<T>; | |
abstract update(id: string, item: T); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment