@omnia/tooling-composers 8.0.86-vnext → 8.0.88-vnext

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.
@@ -33,7 +33,7 @@ export interface INewManifestComposer extends IRegisterService {
33
33
  * Usage: registerResourceGroup({...}).*additionalOperations
34
34
  * @param groupOptions the options for the defining the webcomponent group.
35
35
  */
36
- registerResourceGroup: (groupOptions: ManifestGroupOptions) => IManifestGroupComposer;
36
+ registerResourceGroup: (groupOptions: ManifestGroupOptions<GuidValue>) => IManifestGroupComposer;
37
37
  /**
38
38
  * Registers a new localization manifest
39
39
  * Used to add labels for localization
@@ -12,6 +12,13 @@ class ManifestGroupRegistration {
12
12
  this.manifestPath = manifestPath;
13
13
  this.manifest = manifest;
14
14
  this.loadRules = [];
15
+ // ensure is string value
16
+ if (this.manifestGroupOptions.resourceManifestIds) {
17
+ this.manifestGroupOptions.resourceManifestIds = this.manifestGroupOptions.resourceManifestIds.map(r => r.toString());
18
+ }
19
+ if (this.manifestGroupOptions.webComponentManifestIds) {
20
+ this.manifestGroupOptions.webComponentManifestIds = this.manifestGroupOptions.webComponentManifestIds.map(r => r.toString());
21
+ }
15
22
  }
16
23
  }
17
24
  exports.ManifestGroupRegistration = ManifestGroupRegistration;
@@ -1,6 +1,7 @@
1
- export interface ManifestGroupOptions {
1
+ import { GuidValue } from "@omnia/fx-models";
2
+ export interface ManifestGroupOptions<T extends string | GuidValue = string> {
2
3
  /** The manifest id's of the webcomponent's to include in this group */
3
- webComponentManifestIds?: Array<string>;
4
+ webComponentManifestIds?: Array<T>;
4
5
  /** The manifest id's of the resources to include in this group */
5
- resourceManifestIds?: Array<string>;
6
+ resourceManifestIds?: Array<T>;
6
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-composers",
3
3
  "license": "MIT",
4
- "version": "8.0.86-vnext",
4
+ "version": "8.0.88-vnext",
5
5
  "description": "Provide tooling to work with manifest things.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.86-vnext",
23
- "@omnia/tooling": "8.0.86-vnext",
22
+ "@omnia/fx-models": "8.0.88-vnext",
23
+ "@omnia/tooling": "8.0.88-vnext",
24
24
  "deep-extend": "0.6.0",
25
25
  "fs-extra": "11.1.0",
26
26
  "del": "6.0.0",