@balena/sbvr-types
Advanced tools
Comparing version 5.0.1-build-renovate-typescript-5-x-d7b0b702f2312f049e0753e09a7e3a91f9eb1f8d-1 to 5.1.0-build-web-resource-2-18a09938422881c4507118f81f2d5395e132e741-1
@@ -7,6 +7,6 @@ # Change Log | ||
# v5.0.1 | ||
## (2023-05-16) | ||
# v5.1.0 | ||
## (2023-05-17) | ||
* chore(deps): update dependency typescript to v5 [Renovate Bot] | ||
* Adds WebResource type [Otávio Jacobi] | ||
@@ -13,0 +13,0 @@ # v5.0.0 |
@@ -23,2 +23,3 @@ import type { SbvrType } from './type-utils'; | ||
import * as Time from './types/time'; | ||
import * as WebResource from './types/web-resource'; | ||
declare const _default: { | ||
@@ -45,3 +46,4 @@ 'Big Integer': typeof BigInteger; | ||
Time: typeof Time; | ||
WebResource: typeof WebResource; | ||
}; | ||
export default _default; |
@@ -23,2 +23,3 @@ "use strict"; | ||
const Time = require("./types/time"); | ||
const WebResource = require("./types/web-resource"); | ||
exports.default = { | ||
@@ -45,3 +46,4 @@ 'Big Integer': BigInteger, | ||
Time, | ||
WebResource, | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "5.0.1-build-renovate-typescript-5-x-d7b0b702f2312f049e0753e09a7e3a91f9eb1f8d-1", | ||
"version": "5.1.0-build-web-resource-2-18a09938422881c4507118f81f2d5395e132e741-1", | ||
"description": "SBVR type definitions.", | ||
@@ -24,2 +24,3 @@ "main": "out", | ||
"devDependencies": { | ||
"@balena/abstract-sql-compiler": "^8.3.12", | ||
"@balena/lint": "^6.2.1", | ||
@@ -37,3 +38,3 @@ "@types/bcrypt": "^5.0.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.0" | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -59,4 +60,4 @@ "lint-staged": { | ||
"versionist": { | ||
"publishedAt": "2023-05-16T16:05:45.441Z" | ||
"publishedAt": "2023-05-17T15:29:17.803Z" | ||
} | ||
} |
@@ -1,7 +0,4 @@ | ||
## sbvr-types | ||
# sbvr-types | ||
This module defines the data types that can be used in the SBVR model | ||
specification, as well as the possible relations between them. For each data | ||
type, there is a correspondence with a database data type, according to the | ||
various database engines that are supported. | ||
This module defines the data types that can be used in the SBVR model specification, as well as the possible relations between them. For each data type, there is a correspondence with a database data type, according to the various database engines that are supported. | ||
@@ -12,7 +9,8 @@ The SBVR definition for types can be found at [Type.sbvr](https://github.com/balena-io-modules/sbvr-types/blob/master/Type.sbvr) | ||
### How-to | ||
## How-to | ||
For a new type you should add a module to the types folder. The module should return a single object, which has the following format: | ||
#### types | ||
### types | ||
A types object, which specifies how the type is declared in various systems. This contains: | ||
@@ -155,5 +153,4 @@ | ||
## Tests | ||
### Tests | ||
Tests can be found under the `test/` folder, to run the whole suite use `npm test` |
@@ -24,2 +24,3 @@ import type { SbvrType } from './type-utils'; | ||
import * as Time from './types/time'; | ||
import * as WebResource from './types/web-resource'; | ||
@@ -47,2 +48,3 @@ export default { | ||
Time, | ||
WebResource, | ||
} satisfies { | ||
@@ -49,0 +51,0 @@ Hashed: SbvrType & { |
@@ -7,2 +7,3 @@ { | ||
"noImplicitAny": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noUnusedParameters": true, | ||
@@ -9,0 +10,0 @@ "noUnusedLocals": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
130736
101
2040
14
155