@sqb/connect 4.6.0 → 4.6.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/esm/types.d.ts +9 -5
  2. package/package.json +3 -3
package/esm/types.d.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  import { Builtin, DeepPickWritable } from 'ts-gems';
2
- export type EntityInput<T> = DeepNullableIfPartial<DeepPickWritable<T>>;
3
- export type EntityOutput<T> = DeepNullableIfPartial<T>;
4
- export type DeepNullableIfPartial<T> = _DeepNullableIfPartial<T>;
5
- type _DeepNullableIfPartial<T> = T extends Builtin ? T : T extends Promise<infer U> ? Promise<DeepNullableIfPartial<U>> : T extends (infer U)[] ? DeepNullableIfPartial<U>[] : {
6
- [P in keyof T]?: DeepNullableIfPartial<Exclude<T[P], undefined>> | null;
2
+ export type EntityInput<T> = DeepNullablePartial<DeepPickWritable<T>>;
3
+ export type EntityOutput<T> = DeepPartial<T>;
4
+ export type DeepNullablePartial<T> = _DeepNullablePartial<T>;
5
+ type _DeepNullablePartial<T> = T extends Builtin ? T : T extends Promise<infer U> ? Promise<DeepNullablePartial<U>> : T extends (infer U)[] ? DeepNullablePartial<U>[] : {
6
+ [P in keyof T]?: DeepNullablePartial<Exclude<T[P], undefined>> | null;
7
+ };
8
+ export type DeepPartial<T> = _DeepPartial<T>;
9
+ type _DeepPartial<T> = T extends Builtin ? T : T extends Promise<infer U> ? Promise<DeepPartial<U>> : T extends (infer U)[] ? DeepPartial<U>[] : {
10
+ [P in keyof T]?: DeepPartial<Exclude<T[P], undefined>>;
7
11
  };
8
12
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/connect",
3
3
  "description": "Multi-dialect database connection framework written with TypeScript",
4
- "version": "4.6.0",
4
+ "version": "4.6.2",
5
5
  "author": "Panates",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>",
@@ -43,10 +43,10 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/debug": "^4.1.7",
46
- "@types/lodash": "^4.14.191"
46
+ "@types/lodash": "^4.14.192"
47
47
  },
48
48
  "peerDependencies": {
49
- "@sqb/builder": "^4.6.0"
49
+ "@sqb/builder": "^4.6.2"
50
50
  },
51
51
  "type": "module",
52
52
  "types": "esm/index.d.ts",