@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 3.0.1 to 3.0.2-build-resource-typing-ba1301734f1a71dc2a920d1f378173a6bfa7c4a5-1
@@ -7,4 +7,8 @@ # Change Log | ||
## 3.0.1 - 2024-05-03 | ||
## 3.0.2 - 2024-05-09 | ||
* Improve `Resource` typing [Pagan Gazzard] | ||
## 3.0.1 - 2024-05-04 | ||
* Use `[A] | []` rather than `[A?]` for singular references [Pagan Gazzard] | ||
@@ -11,0 +15,0 @@ * Fix `Resource` typing to allow for null [Pagan Gazzard] |
@@ -13,3 +13,5 @@ import type { Types } from '@balena/sbvr-types'; | ||
type WriteTypes = Types[keyof Types]['Write']; | ||
export type Resource<T extends object = object> = { | ||
export type Resource<T extends object = { | ||
[index: string]: any; | ||
}> = { | ||
Read: { | ||
@@ -16,0 +18,0 @@ [key in keyof T]: ReadTypes | { |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "3.0.1", | ||
"version": "3.0.2-build-resource-typing-ba1301734f1a71dc2a920d1f378173a6bfa7c4a5-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -53,4 +53,4 @@ "main": "out/index.js", | ||
"versionist": { | ||
"publishedAt": "2024-05-03T16:59:03.119Z" | ||
"publishedAt": "2024-05-09T18:58:22.046Z" | ||
} | ||
} |
@@ -16,3 +16,7 @@ import type { Types } from '@balena/sbvr-types'; | ||
export type Resource<T extends object = object> = { | ||
export type Resource< | ||
T extends object = { | ||
[index: string]: any; | ||
}, | ||
> = { | ||
Read: { | ||
@@ -19,0 +23,0 @@ [key in 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
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
201435
710
2