@balena/sbvr-types
Advanced tools
Comparing version 7.0.5 to 7.0.6-build-json-typings-487000677cbc9decdcc0029b24f7c6de81216b57-1
@@ -7,2 +7,7 @@ # Change Log | ||
# v7.0.6 | ||
## (2024-03-21) | ||
* Improve JSON typings [Pagan Gazzard] | ||
# v7.0.5 | ||
@@ -9,0 +14,0 @@ ## (2024-03-13) |
@@ -10,4 +10,16 @@ import * as TypeUtils from '../type-utils'; | ||
}; | ||
type ReadType = Record<string, any> | any[]; | ||
type WriteType = Record<string, any> | any[]; | ||
type JSON = string | number | boolean | null | JSON[] | { | ||
[key: string]: JSON; | ||
}; | ||
type JSONable = string | number | boolean | null | undefined | JSONable[] | { | ||
[key: string]: JSONable; | ||
} | { | ||
toJSON(): JSONable; | ||
}; | ||
type ReadType = { | ||
[key: string]: JSON; | ||
} | JSON[]; | ||
type WriteType = { | ||
[key: string]: JSONable; | ||
} | JSONable[]; | ||
type DbWriteType = string; | ||
@@ -14,0 +26,0 @@ export declare const fetchProcessing: TypeUtils.FetchProcessing<ReadType>; |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "7.0.5", | ||
"version": "7.0.6-build-json-typings-487000677cbc9decdcc0029b24f7c6de81216b57-1", | ||
"description": "SBVR type definitions.", | ||
@@ -54,4 +54,4 @@ "main": "out", | ||
"versionist": { | ||
"publishedAt": "2024-03-13T14:59:37.548Z" | ||
"publishedAt": "2024-03-21T15:16:13.005Z" | ||
} | ||
} |
@@ -12,4 +12,15 @@ import * as TypeUtils from '../type-utils'; | ||
type ReadType = Record<string, any> | any[]; | ||
type WriteType = Record<string, any> | any[]; | ||
type JSON = string | number | boolean | null | JSON[] | { [key: string]: JSON }; | ||
type JSONable = | ||
| string | ||
| number | ||
| boolean | ||
| null | ||
| undefined | ||
| JSONable[] | ||
| { [key: string]: JSONable } | ||
| { toJSON(): JSONable }; | ||
type ReadType = { [key: string]: JSON } | JSON[]; | ||
type WriteType = { [key: string]: JSONable } | JSONable[]; | ||
type DbWriteType = string; | ||
@@ -16,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
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
142823
2226
2