chage file path

This commit is contained in:
Peter Maquiran
2024-08-16 17:45:45 +01:00
parent 9d441a3e5b
commit f18239a021
47 changed files with 137 additions and 79 deletions
@@ -1,11 +1,10 @@
import { Result, ok, err, ResultAsync } from 'neverthrow';
import { Dexie, EntityTable, liveQuery, Observable } from 'Dexie';
import { Result, ok, err } from 'neverthrow';
import { EntityTable } from 'Dexie';
import { ZodError, ZodObject, ZodSchema } from 'zod';
// Define a type for the Result of repository operations
type RepositoryResult<T, E> = Result<T, Error | ZodError<E>>;
export class DexieRepository<T> {
private table: EntityTable<any, any>;
private ZodSchema: ZodSchema<T>