@dcl/playground-assets 7.8.4-14594957507.commit-27ceddb → 7.8.5-14604043267.commit-a5e11cb

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.
package/dist/alpha.d.ts CHANGED
@@ -2235,7 +2235,14 @@ export declare interface IEngine {
2235
2235
  * Search for the entity that matches de label string defined in the editor.
2236
2236
  * @param value - Name value string
2237
2237
  */
2238
- getEntityOrNullByName(label: string): Entity | null;
2238
+ getEntityOrNullByName<T = string>(label: T): Entity | null;
2239
+ /**
2240
+ * @public
2241
+ * Search for the entity that matches de label string defined in the editor.
2242
+ * @param value - Name value string
2243
+ * @typeParam T - The type of the entity name value
2244
+ */
2245
+ getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
2239
2246
  /**
2240
2247
  * @public
2241
2248
  * @param deltaTime - deltaTime in seconds
package/dist/beta.d.ts CHANGED
@@ -2231,6 +2231,13 @@ export declare interface IEngine {
2231
2231
  */
2232
2232
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
2233
2233
  /* Excluded from this release type: getEntityOrNullByName */
2234
+ /**
2235
+ * @public
2236
+ * Search for the entity that matches de label string defined in the editor.
2237
+ * @param value - Name value string
2238
+ * @typeParam T - The type of the entity name value
2239
+ */
2240
+ getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
2234
2241
  /**
2235
2242
  * @public
2236
2243
  * @param deltaTime - deltaTime in seconds
@@ -2231,6 +2231,13 @@ export declare interface IEngine {
2231
2231
  */
2232
2232
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
2233
2233
  /* Excluded from this release type: getEntityOrNullByName */
2234
+ /**
2235
+ * @public
2236
+ * Search for the entity that matches de label string defined in the editor.
2237
+ * @param value - Name value string
2238
+ * @typeParam T - The type of the entity name value
2239
+ */
2240
+ getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
2234
2241
  /**
2235
2242
  * @public
2236
2243
  * @param deltaTime - deltaTime in seconds