@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.
@@ -3150,7 +3150,7 @@ class Reflection extends Schema {
3150
3150
  }
3151
3151
  reflection.types.push(currentType);
3152
3152
  };
3153
- const types = rootSchemaType._context.types;
3153
+ const types = rootSchemaType._context?.types;
3154
3154
  for (let typeid in types) {
3155
3155
  const type = new ReflectionType();
3156
3156
  type.id = Number(typeid);