@flashist/flibs 0.0.111 → 0.0.112
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.
|
@@ -6,6 +6,6 @@ export declare class GenericObjectsByTypeModel {
|
|
|
6
6
|
commitItems(items: IGenericObjectVO[]): void;
|
|
7
7
|
protected getModelForType(type: string): GenericObjectsModel;
|
|
8
8
|
getItem<ItemType extends IGenericObjectVO = IGenericObjectVO>(type: string, id: string): ItemType;
|
|
9
|
-
getItemsForType<ItemType extends IGenericObjectVO = IGenericObjectVO>(type: string): ItemType[];
|
|
9
|
+
getItemsForType<ItemType extends IGenericObjectVO = IGenericObjectVO>(type: string, makeCopy?: boolean): ItemType[];
|
|
10
10
|
mapModelToType(model: GenericObjectsModel, type: string): void;
|
|
11
11
|
}
|
|
@@ -25,9 +25,10 @@ var GenericObjectsByTypeModel = /** @class */ (function () {
|
|
|
25
25
|
var typeModel = this.getModelForType(type);
|
|
26
26
|
return typeModel.getItem(id);
|
|
27
27
|
};
|
|
28
|
-
GenericObjectsByTypeModel.prototype.getItemsForType = function (type) {
|
|
28
|
+
GenericObjectsByTypeModel.prototype.getItemsForType = function (type, makeCopy) {
|
|
29
|
+
if (makeCopy === void 0) { makeCopy = true; }
|
|
29
30
|
var typeModel = this.getModelForType(type);
|
|
30
|
-
return typeModel.getAllItems();
|
|
31
|
+
return typeModel.getAllItems(makeCopy);
|
|
31
32
|
};
|
|
32
33
|
GenericObjectsByTypeModel.prototype.mapModelToType = function (model, type) {
|
|
33
34
|
this.modelsToTypeMap.push(model, type);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericObjectsByTypeModel.js","sourceRoot":"","sources":["../../../src/model/generic/GenericObjectsByTypeModel.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GenericObjectsByTypeModel.js","sourceRoot":"","sources":["../../../src/model/generic/GenericObjectsByTypeModel.ts"],"names":[],"mappings":"AAAA,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