Skip to content

Instantly share code, notes, and snippets.

@newerton
Created September 20, 2022 16:12
Show Gist options
  • Save newerton/1cc798800e06e8952dba870cd6f7a631 to your computer and use it in GitHub Desktop.
Save newerton/1cc798800e06e8952dba870cd6f7a631 to your computer and use it in GitHub Desktop.
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