@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 3.3.1-build-renovate-major-8--balenasbvr-types-8e3750e27e52293db545b56003a2cdba15fe1e89-1 to 3.4.0-build-pick-deferred-expanded-cf3beec0b799d079d21ed9d890eb4ddbe3be0392-1
@@ -7,15 +7,6 @@ # Change Log | ||
## 3.3.1 - 2024-06-27 | ||
## 3.4.0 - 2024-07-05 | ||
* Add a type helper for picking both deferred and expanded props [Pagan Gazzard] | ||
<details> | ||
<summary> Update dependency @balena/sbvr-types to v8 [Self-hosted Renovate Bot] </summary> | ||
> ### sbvr-types-8.0.0 - 2024-06-12 | ||
> | ||
> * Improve BigInteger and BigSerial support [Josh Bowling] | ||
> | ||
</details> | ||
## 3.3.0 - 2024-06-27 | ||
@@ -22,0 +13,0 @@ |
import type { Types } from '@balena/sbvr-types'; | ||
export type { Types } from '@balena/sbvr-types'; | ||
export type PickDeferredExpanded<T, U extends { | ||
Deferred?: Array<keyof T>; | ||
Expanded?: Array<keyof T>; | ||
}> = PickDeferred<T, Extract<U['Deferred'], Array<keyof T>>[number]> & PickExpanded<T, Extract<U['Expanded'], Array<keyof T>>[number]>; | ||
export type Expanded<T> = Extract<T, Array<Resource['Read']>>; | ||
@@ -4,0 +8,0 @@ export type PickExpanded<T, K extends keyof T = keyof T> = { |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "3.3.1-build-renovate-major-8--balenasbvr-types-8e3750e27e52293db545b56003a2cdba15fe1e89-1", | ||
"version": "3.4.0-build-pick-deferred-expanded-cf3beec0b799d079d21ed9d890eb4ddbe3be0392-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -24,3 +24,3 @@ "main": "out/index.js", | ||
"@balena/odata-to-abstract-sql": "^6.2.7", | ||
"@balena/sbvr-types": "^8.0.0", | ||
"@balena/sbvr-types": "^7.1.3", | ||
"@types/node": "^20.14.8", | ||
@@ -55,4 +55,4 @@ "common-tags": "^1.8.2" | ||
"versionist": { | ||
"publishedAt": "2024-06-27T16:45:51.052Z" | ||
"publishedAt": "2024-07-05T18:14:13.736Z" | ||
} | ||
} |
import type { Types } from '@balena/sbvr-types'; | ||
export type { Types } from '@balena/sbvr-types'; | ||
export type PickDeferredExpanded< | ||
T, | ||
U extends { Deferred?: Array<keyof T>; Expanded?: Array<keyof T> }, | ||
> = PickDeferred<T, Extract<U['Deferred'], Array<keyof T>>[number]> & | ||
PickExpanded<T, Extract<U['Expanded'], Array<keyof T>>[number]>; | ||
export type Expanded<T> = Extract<T, Array<Resource['Read']>>; | ||
@@ -5,0 +11,0 @@ export type PickExpanded<T, K extends keyof T = keyof T> = { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
846
228496
- Removed@balena/sbvr-types@8.0.0(transitive)
Updated@balena/sbvr-types@^7.1.3