From 0d972f7157d13e70149c1c11cced7d32fc4283e0 Mon Sep 17 00:00:00 2001 From: waynemwashuma <94756970+waynemwashuma@users.noreply.github.com> Date: Mon, 16 Mar 2026 03:51:23 +0300 Subject: [PATCH] Expose the type of an asset handle --- src/asset/core/asset.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/asset/core/asset.js b/src/asset/core/asset.js index 37edac2c..f02badb3 100644 --- a/src/asset/core/asset.js +++ b/src/asset/core/asset.js @@ -257,6 +257,12 @@ export class Assets { */ export class Handle { + /** + * @readonly + * @type {Constructor} + */ + type + /** * @private * @type {boolean} @@ -293,6 +299,7 @@ export class Handle { this.index = index this.generation = generation this.assets = assets + this.type = assets.type const entry = assets.getEntry(this)