@imolko/ultra-ddd 1.0.22-beta → 1.0.23-beta
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.
|
@@ -21,8 +21,8 @@ export function main() {
|
|
|
21
21
|
console.log('\\\\nEVENTS', events); // Escapar la barra invertida
|
|
22
22
|
|
|
23
23
|
// Esquematizar eventos
|
|
24
|
-
const groupByType = (list:
|
|
25
|
-
const groupedMap: { [key: string]:
|
|
24
|
+
const groupByType = (list: SchemifyModel[]): { [key: string]: SchemifyModel[] } => {
|
|
25
|
+
const groupedMap: { [key: string]: SchemifyModel[] } = {};
|
|
26
26
|
for (const item of list) {
|
|
27
27
|
const typeObject = item.schema.properties.type as {type: string, const: string};
|
|
28
28
|
const type = typeObject.const;
|
|
@@ -23,8 +23,8 @@ export function main() {
|
|
|
23
23
|
console.log('\\\\nEVENTS', events); // Escapar la barra invertida
|
|
24
24
|
|
|
25
25
|
// Esquematizar eventos
|
|
26
|
-
const groupByType = (list:
|
|
27
|
-
const groupedMap: { [key: string]:
|
|
26
|
+
const groupByType = (list: SchemifyModel[]): { [key: string]: SchemifyModel[] } => {
|
|
27
|
+
const groupedMap: { [key: string]: SchemifyModel[] } = {};
|
|
28
28
|
for (const item of list) {
|
|
29
29
|
const typeObject = item.schema.properties.type as {type: string, const: string};
|
|
30
30
|
const type = typeObject.const;
|