@tstdl/base 0.71.79 → 0.71.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import type { Entity, MaybeNewEntity } from './entity';
2
2
  import type { Query, QueryOptions } from './query';
3
- declare const type: unique symbol;
3
+ export declare const repositoryType: unique symbol;
4
4
  export declare type UpdateOptions = {
5
5
  upsert?: boolean;
6
6
  };
7
7
  export declare type EntityPatch<T extends Entity = Entity> = Partial<Omit<T, 'id'>>;
8
8
  export declare abstract class EntityRepository<T extends Entity = Entity> {
9
- readonly [type]: T;
9
+ readonly [repositoryType]: T;
10
10
  abstract load<U extends T = T>(id: string): Promise<U>;
11
11
  abstract tryLoad<U extends T = T>(id: string): Promise<U | undefined>;
12
12
  abstract loadByFilter<U extends T = T>(query: Query<U>, options?: QueryOptions<U>): Promise<U>;
@@ -48,4 +48,3 @@ export declare abstract class EntityRepository<T extends Entity = Entity> {
48
48
  abstract deleteByFilter<U extends T = T>(query: Query<U>): Promise<boolean>;
49
49
  abstract deleteManyByFilter<U extends T = T>(query: Query<U>): Promise<number>;
50
50
  }
51
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.71.79",
3
+ "version": "0.71.80",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"