Fixed MobXObservableZodSchemaObject
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-25 06:06:35 +01:00
parent 8ca2805f4f
commit e5e7d48b4c

View File

@@ -13,7 +13,10 @@ export const MobXObservableZodSchemaObject = trait
super(...args)
makeObservable(this,
mapValues(ObservableZodSchemaObject.schema.shape, () => observable)
mapValues(
(this.constructor as typeof ObservableZodSchemaObject).schema.shape,
() => observable,
)
)
}
})