@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 1.1.0 to 1.1.1-fix-pick-helpers-ab7a898e7d55c50f0702560d4df1f2b29a775b90
@@ -7,2 +7,6 @@ # Change Log | ||
## 1.1.1 - 2021-01-04 | ||
* Fix PickExpanded/PickDeferred type helpers [Pagan Gazzard] | ||
## 1.1.0 - 2020-12-30 | ||
@@ -9,0 +13,0 @@ |
@@ -10,7 +10,7 @@ "use strict"; | ||
export type Expanded<T> = Extract<T, any[]>; | ||
export type PickExpanded<T, U extends keyof T> = { | ||
export type PickExpanded<T, K extends keyof T> = { | ||
[P in K]: Expanded<T[P]>; | ||
}; | ||
export type Deferred<T> = Exclude<T, any[]>; | ||
export type PickDeferred<T, U extends keyof T> = { | ||
export type PickDeferred<T, K extends keyof T> = { | ||
[P in K]: Deferred<T[P]>; | ||
@@ -17,0 +17,0 @@ }; |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "1.1.0", | ||
"version": "1.1.1-fix-pick-helpers-ab7a898e7d55c50f0702560d4df1f2b29a775b90", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -14,7 +14,7 @@ import { | ||
export type Expanded<T> = Extract<T, any[]>; | ||
export type PickExpanded<T, U extends keyof T> = { | ||
export type PickExpanded<T, K extends keyof T> = { | ||
[P in K]: Expanded<T[P]>; | ||
}; | ||
export type Deferred<T> = Exclude<T, any[]>; | ||
export type PickDeferred<T, U extends keyof T> = { | ||
export type PickDeferred<T, K extends keyof T> = { | ||
[P in K]: Deferred<T[P]>; | ||
@@ -21,0 +21,0 @@ }; |
@@ -27,7 +27,7 @@ import { AbstractSqlModel } from '@balena/abstract-sql-compiler'; | ||
export type Expanded<T> = Extract<T, any[]>; | ||
export type PickExpanded<T, U extends keyof T> = { | ||
export type PickExpanded<T, K extends keyof T> = { | ||
[P in K]: Expanded<T[P]>; | ||
}; | ||
export type Deferred<T> = Exclude<T, any[]>; | ||
export type PickDeferred<T, U extends keyof T> = { | ||
export type PickDeferred<T, K extends keyof T> = { | ||
[P in K]: Deferred<T[P]>; | ||
@@ -34,0 +34,0 @@ }; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
20261
2