This commit is contained in:
Peter Maquiran
2024-10-08 13:16:01 +01:00
parent 0dd4fd665b
commit 9c8ecc182f
22 changed files with 121 additions and 60 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ export abstract class IDexieRepository<T, R, I = EntityTable<any, any>> {
abstract find(filter: Partial<T>): Promise<RepositoryResult<R[], T[]>>
abstract findOne(filter: Partial<T>): Promise<RepositoryResult<T & ILocalModel | undefined, T>>
abstract findOne(filter: Partial<T>): Promise<RepositoryResult<T & ILocalModel<T, R, I> | undefined, T>>
abstract findAll(): Promise<RepositoryResult<T[], T>>
@@ -29,7 +29,7 @@ export abstract class IDexieRepository<T, R, I = EntityTable<any, any>> {
abstract clear(): Promise<Result<any, any>>
}
export abstract class ILocalModel{
abstract save()
export abstract class ILocalModel<T, R, I = EntityTable<any, any>>{
abstract save() : Promise<RepositoryResult<number, T>>
abstract delete()
}