import { Entity } from './util/entity'; import { Optional } from 'typescript-optional'; export interface Repository { findById: (id: string) => Promise>; findAll: (filters?: any, sortBy?: any) => Promise; save: (entity: S | ({ id: string; } & Partial)) => Promise; deleteById: (id: string) => Promise; }