electrodb 3.7.2 → 3.7.3

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/index.d.ts +29 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2396,14 +2396,33 @@ interface QueryOperations<
2396
2396
  ) => QueryBranches<A, F, C, S, ResponseItem, IndexCompositeAttributes, I>;
2397
2397
  go: GoQueryTerminal<A, F, C, S, ResponseItem, I>;
2398
2398
  params: ParamTerminal<A, F, C, S, ResponseItem>;
2399
- where: WhereClause<
2400
- A,
2401
- F,
2402
- C,
2403
- S,
2404
- Item<A, F, C, S, S["attributes"]>,
2405
- QueryBranches<A, F, C, S, ResponseItem, IndexCompositeAttributes, I>
2406
- >;
2399
+ where: IndexSpecificSchema<A, F, C, S, I> extends Schema<
2400
+ infer A2,
2401
+ infer F2,
2402
+ infer C2
2403
+ >
2404
+ ? WhereClause<
2405
+ A2,
2406
+ F2,
2407
+ C2,
2408
+ IndexSpecificSchema<A, F, C, S, I>,
2409
+ Item<
2410
+ A2,
2411
+ F2,
2412
+ C2,
2413
+ IndexSpecificSchema<A, F, C, S, I>,
2414
+ IndexSpecificSchema<A, F, C, S, I>["attributes"]
2415
+ >,
2416
+ QueryBranches<A, F, C, S, ResponseItem, IndexCompositeAttributes, I>
2417
+ >
2418
+ : WhereClause<
2419
+ A,
2420
+ F,
2421
+ C,
2422
+ S,
2423
+ Item<A, F, C, S, S["attributes"]>,
2424
+ QueryBranches<A, F, C, S, ResponseItem, IndexCompositeAttributes, I>
2425
+ >;
2407
2426
  }
2408
2427
 
2409
2428
  type IndexKeyComposite<
@@ -5302,8 +5321,8 @@ export type WhereCallback<
5302
5321
  C extends string,
5303
5322
  S extends Schema<A, F, C>,
5304
5323
  I extends Item<A, F, C, S, S["attributes"]>,
5305
- > = <W extends WhereAttributes<A, F, C, S, I>>(
5306
- attributes: W,
5324
+ > = (
5325
+ attributes: WhereAttributes<A, F, C, S, I>,
5307
5326
  operations: WhereOperations<A, F, C, S, I>,
5308
5327
  ) => string;
5309
5328
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
5
5
  "main": "index.js",
6
6
  "scripts": {