@karmaniverous/entity-manager 7.1.1 → 7.1.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -788,10 +788,11 @@ interface BaseQueryBuilderOptions<CC extends BaseConfigMap, EntityClient extends
788
788
  * Same as {@link QueryOptions | `QueryOptions`} for {@link EntityManager.query | `EntityManager.query`}, excluding `entityToken`, `pageKeyMap`, and `shardQueryMap`.
789
789
  *
790
790
  * @typeParam CC - {@link ConfigMap | `ConfigMap`} that defines an {@link Config | `EntityManager configuration`}'s {@link EntityMap | `EntityMap`}, key properties, and {@link TranscodeRegistry | `TranscodeRegistry`}. If omitted, defaults to {@link BaseConfigMap | `BaseConfigMap`}.
791
+ * @typeParam ET - Entity token narrowing the item types for options.item.
791
792
  *
792
793
  * @category QueryBuilder
793
794
  */
794
- type QueryBuilderQueryOptions<CC extends BaseConfigMap, CF = unknown> = Omit<QueryOptions<CC, never, string, CF>, 'entityToken' | 'pageKeyMap' | 'shardQueryMap'>;
795
+ type QueryBuilderQueryOptions<CC extends BaseConfigMap, ET extends EntityToken<CC>, CF = unknown> = Omit<QueryOptions<CC, ET, string, CF>, 'entityToken' | 'pageKeyMap' | 'shardQueryMap'>;
795
796
 
796
797
  /**
797
798
  * Abstract base class supporting a fluent API for building a {@link ShardQueryMap | `ShardQueryMap`} using a database client.
@@ -828,7 +829,7 @@ declare abstract class BaseQueryBuilder<CC extends BaseConfigMap, EntityClient e
828
829
  * @returns - The {@link ShardQueryMap | `ShardQueryMap`} object.
829
830
  */
830
831
  build(): ShardQueryMap<CC, ET, ITS, CF, K>;
831
- query(options: QueryBuilderQueryOptions<CC, CF>): Promise<QueryResult<CC, ET, ITS, K>>;
832
+ query(options: QueryBuilderQueryOptions<CC, ET, CF>): Promise<QueryResult<CC, ET, ITS, K>>;
832
833
  }
833
834
 
834
835
  export { BaseEntityClient, BaseQueryBuilder, EntityManager, configSchema, createEntityManager };
package/package.json CHANGED
@@ -128,5 +128,5 @@
128
128
  },
129
129
  "type": "module",
130
130
  "types": "dist/index.d.ts",
131
- "version": "7.1.1"
131
+ "version": "7.1.2"
132
132
  }