This option is useful when you have particularly large schemas, and are
starting to feel the TS compiler drag. With
zx.deepNoDefaults.writeable, you
can pay that price one by writing the new schema to disc.
Keep in mind that the most expensive part of the transformation is at the
type-level; writing to disc solves that problem, but introduces a syncing problem,
so if you don't "own" the schema, make sure you've at least thought about what
you'll do when the schema inevitably changes.
zx.deepNoDefaults.writeable
Convenience function that composes
zx.deepNoDefaults
andzx.toString
.This option is useful when you have particularly large schemas, and are starting to feel the TS compiler drag. With
zx.deepNoDefaults.writeable
, you can pay that price one by writing the new schema to disc.Keep in mind that the most expensive part of the transformation is at the type-level; writing to disc solves that problem, but introduces a syncing problem, so if you don't "own" the schema, make sure you've at least thought about what you'll do when the schema inevitably changes.