@dcl/playground-assets 7.1.2-4409365701.commit-a58c7a5 → 7.1.2-4419392799.commit-7961b54

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.1.2-4409365701.commit-a58c7a5",
3
+ "version": "7.1.2-4419392799.commit-7961b54",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -30,5 +30,5 @@
30
30
  "displayName": "SDK",
31
31
  "tsconfig": "./tsconfig.json"
32
32
  },
33
- "commit": "a58c7a50276b3c778b15a7480b2b78abd0eaa1d0"
33
+ "commit": "7961b54813d767254a533472157b7c07665aeb13"
34
34
  }
@@ -1628,7 +1628,7 @@ export declare interface IEngine {
1628
1628
  * const StateComponent = engine.getComponent(StateComponentId)
1629
1629
  * ```
1630
1630
  */
1631
- getComponent<T>(componentId: number): ComponentDefinition<T>;
1631
+ getComponent<T>(componentId: number | string): ComponentDefinition<T>;
1632
1632
  /**
1633
1633
  * Get the component definition from the component id.
1634
1634
  * @param componentId - component number or name used to identify the component descriptor
@@ -1638,7 +1638,7 @@ export declare interface IEngine {
1638
1638
  * const StateComponent = engine.getComponent(StateComponentId)
1639
1639
  * ```
1640
1640
  */
1641
- getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
1641
+ getComponentOrNull<T>(componentId: number | string): ComponentDefinition<T> | null;
1642
1642
  /**
1643
1643
  * @public
1644
1644
  * Get a iterator of entities that has all the component requested.
@@ -13527,7 +13527,7 @@
13527
13527
  },
13528
13528
  {
13529
13529
  "kind": "Content",
13530
- "text": "number"
13530
+ "text": "number | string"
13531
13531
  },
13532
13532
  {
13533
13533
  "kind": "Content",
@@ -13590,7 +13590,7 @@
13590
13590
  },
13591
13591
  {
13592
13592
  "kind": "Content",
13593
- "text": "number"
13593
+ "text": "number | string"
13594
13594
  },
13595
13595
  {
13596
13596
  "kind": "Content",
@@ -755,8 +755,8 @@ export interface IEngine {
755
755
  defineComponent<T extends Spec>(componentName: string, spec: T, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
756
756
  defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): LastWriteWinElementSetComponentDefinition<T>;
757
757
  defineValueSetComponentFromSchema<T>(componentName: string, spec: ISchema<T>, options: ValueSetOptions<T>): GrowOnlyValueSetComponentDefinition<T>;
758
- getComponent<T>(componentId: number): ComponentDefinition<T>;
759
- getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
758
+ getComponent<T>(componentId: number | string): ComponentDefinition<T>;
759
+ getComponentOrNull<T>(componentId: number | string): ComponentDefinition<T> | null;
760
760
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
761
761
  getEntityState(entity: Entity): EntityState;
762
762
  readonly PlayerEntity: Entity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.1.2-4409365701.commit-a58c7a5",
3
+ "version": "7.1.2-4419392799.commit-7961b54",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "Decentraland",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcl/sdk": "7.1.2-4409365701.commit-a58c7a5"
20
+ "@dcl/sdk": "7.1.2-4419392799.commit-7961b54"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@microsoft/api-extractor": "^7.33.8"
@@ -27,5 +27,5 @@
27
27
  "dist",
28
28
  "etc"
29
29
  ],
30
- "commit": "a58c7a50276b3c778b15a7480b2b78abd0eaa1d0"
30
+ "commit": "7961b54813d767254a533472157b7c07665aeb13"
31
31
  }