bigal 10.0.0-beta1 → 10.0.0-beta2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigal",
3
- "version": "10.0.0-beta1",
3
+ "version": "10.0.0-beta2",
4
4
  "description": "A fast and lightweight orm for postgres and node.js, written in typescript.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -2,10 +2,11 @@ import type { Entity, NotEntityBrand } from '../Entity';
2
2
  import type { EntityPrimitiveOrId } from './EntityPrimitiveOrId';
3
3
  import type { ExcludeEntityCollections } from './ExcludeEntityCollections';
4
4
  import type { ExcludeFunctions } from './ExcludeFunctions';
5
- import type { QueryResult } from './QueryResult';
6
5
  /**
7
6
  * Changes all Entity value properties to Primitive (string|number) | Pick<Entity, 'id'>
8
7
  */
9
8
  export declare type CreateUpdateParams<T extends Entity> = {
10
- [K in keyof T as ExcludeEntityCollections<T[K], ExcludeFunctions<T[K], K>>]?: T[K] extends NotEntityBrand | undefined ? T[K] : T[K] extends Entity ? EntityPrimitiveOrId<T[K]> | Pick<QueryResult<T[K]>, 'id'> : T[K];
9
+ [K in keyof T as ExcludeEntityCollections<NonNullable<T[K]>, ExcludeFunctions<T[K], K>>]?: T[K] extends NotEntityBrand | undefined ? T[K] : T[K] extends Entity ? EntityPrimitiveOrId<T[K]> | {
10
+ id: unknown;
11
+ } : T[K];
11
12
  };