@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 2.2.0 to 2.3.0-build-expand-defer-all-60b4233b03c1ec25165b800de1fd9bd31158cfca-1
@@ -7,2 +7,7 @@ # Change Log | ||
## 2.3.0 - 2024-04-17 | ||
* Allow using `PickDeferred` with a single parameter to defer all keys [Pagan Gazzard] | ||
* Allow using `PickExpanded` with a single parameter to expand all keys [Pagan Gazzard] | ||
## 2.2.0 - 2024-04-09 | ||
@@ -9,0 +14,0 @@ |
@@ -10,7 +10,7 @@ "use strict"; | ||
export type Expanded<T> = Extract<T, any[]>; | ||
export type PickExpanded<T, K extends keyof T> = { | ||
export type PickExpanded<T, K extends keyof T = keyof T> = { | ||
[P in K]-?: Expanded<T[P]>; | ||
}; | ||
export type Deferred<T> = Exclude<T, any[]>; | ||
export type PickDeferred<T, K extends keyof T> = { | ||
export type PickDeferred<T, K extends keyof T = keyof T> = { | ||
[P in K]: Deferred<T[P]>; | ||
@@ -17,0 +17,0 @@ }; |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "2.2.0", | ||
"version": "2.3.0-build-expand-defer-all-60b4233b03c1ec25165b800de1fd9bd31158cfca-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -48,4 +48,4 @@ "main": "out/index.js", | ||
"versionist": { | ||
"publishedAt": "2024-04-09T02:03:27.626Z" | ||
"publishedAt": "2024-04-17T18:02:46.516Z" | ||
} | ||
} |
@@ -25,7 +25,7 @@ import type { | ||
export type Expanded<T> = Extract<T, any[]>; | ||
export type PickExpanded<T, K extends keyof T> = { | ||
export type PickExpanded<T, K extends keyof T = keyof T> = { | ||
[P in K]-?: Expanded<T[P]>; | ||
}; | ||
export type Deferred<T> = Exclude<T, any[]>; | ||
export type PickDeferred<T, K extends keyof T> = { | ||
export type PickDeferred<T, K extends keyof T = keyof T> = { | ||
[P in K]: Deferred<T[P]>; | ||
@@ -32,0 +32,0 @@ }; |
@@ -29,7 +29,7 @@ import type { AbstractSqlModel } from '@balena/abstract-sql-compiler'; | ||
export type Expanded<T> = Extract<T, any[]>; | ||
export type PickExpanded<T, K extends keyof T> = { | ||
export type PickExpanded<T, K extends keyof T = keyof T> = { | ||
[P in K]-?: Expanded<T[P]>; | ||
}; | ||
export type Deferred<T> = Exclude<T, any[]>; | ||
export type PickDeferred<T, K extends keyof T> = { | ||
export type PickDeferred<T, K extends keyof T = keyof T> = { | ||
[P in K]: Deferred<T[P]>; | ||
@@ -36,0 +36,0 @@ }; |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
199249
2