@thisisagile/easy 12.13.0 → 12.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,7 @@
1
1
  export declare type Id = string | number;
2
2
  export declare type Key = Id;
3
3
  export declare type Code = Id;
4
+ export declare type HasId = {
5
+ id: Id;
6
+ };
4
7
  export declare const toId: () => Id;
@@ -1 +1 @@
1
- {"version":3,"file":"Id.js","sourceRoot":"","sources":["../../src/types/Id.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAMzB,MAAM,IAAI,GAAG,GAAO,EAAE,CAAC,IAAA,aAAM,GAAE,CAAC;AAA1B,QAAA,IAAI,QAAsB"}
1
+ {"version":3,"file":"Id.js","sourceRoot":"","sources":["../../src/types/Id.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAQzB,MAAM,IAAI,GAAG,GAAO,EAAE,CAAC,IAAA,aAAM,GAAE,CAAC;AAA1B,QAAA,IAAI,QAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "12.13.0",
3
+ "version": "12.15.0",
4
4
  "description": "Straightforward library for building domain-driven microservice architectures",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
- "@thisisagile/easy-test": "12.13.0",
34
+ "@thisisagile/easy-test": "12.15.0",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.9",
37
37
  "@types/luxon": "3.1.0",
package/src/types/Id.ts CHANGED
@@ -3,5 +3,7 @@ import { toUuid } from './Uuid';
3
3
  export type Id = string | number;
4
4
  export type Key = Id;
5
5
  export type Code = Id;
6
+ export type HasId = { id: Id };
7
+
6
8
 
7
9
  export const toId = (): Id => toUuid();