@colyseus/schema 2.0.22 → 2.0.23

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.
@@ -3249,6 +3249,7 @@ var Reflection = /** @class */ (function (_super) {
3249
3249
  return _this;
3250
3250
  }
3251
3251
  Reflection.encode = function (instance) {
3252
+ var _a;
3252
3253
  var rootSchemaType = instance.constructor;
3253
3254
  var reflection = new Reflection();
3254
3255
  reflection.rootType = rootSchemaType._typeid;
@@ -3288,7 +3289,7 @@ var Reflection = /** @class */ (function (_super) {
3288
3289
  }
3289
3290
  reflection.types.push(currentType);
3290
3291
  };
3291
- var types = rootSchemaType._context.types;
3292
+ var types = (_a = rootSchemaType._context) === null || _a === void 0 ? void 0 : _a.types;
3292
3293
  for (var typeid in types) {
3293
3294
  var type_2 = new ReflectionType();
3294
3295
  type_2.id = Number(typeid);