electrodb 3.4.0 → 3.4.1

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 +11 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3564,15 +3564,21 @@ export interface NumberSetAttribute {
3564
3564
  readonly watch?: ReadonlyArray<string> | "*";
3565
3565
  }
3566
3566
 
3567
- type CustomAttributeTypeName<T> = { readonly [CustomAttributeSymbol]: T };
3567
+ interface CustomAttributeTypeName<T> {
3568
+ readonly [CustomAttributeSymbol]: T;
3569
+ }
3570
+
3571
+ interface CustomPrimitiveTypeName<T> {
3572
+ readonly [OpaquePrimitiveSymbol]: T;
3573
+ }
3568
3574
 
3569
- type OpaquePrimitiveTypeName<T extends string | number | boolean> =
3575
+ export type OpaquePrimitiveTypeName<T extends string | number | boolean> =
3570
3576
  T extends string
3571
- ? "string" & { readonly [OpaquePrimitiveSymbol]: T }
3577
+ ? "string" & CustomPrimitiveTypeName<T>
3572
3578
  : T extends number
3573
- ? "number" & { readonly [OpaquePrimitiveSymbol]: T }
3579
+ ? "number" & CustomPrimitiveTypeName<T>
3574
3580
  : T extends boolean
3575
- ? "boolean" & { readonly [OpaquePrimitiveSymbol]: T }
3581
+ ? "boolean" & CustomPrimitiveTypeName<T>
3576
3582
  : never;
3577
3583
 
3578
3584
  type CustomAttribute = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
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": {