* Returns a new struct with the fields modified by the provided function. * * **Details** * * Options: * * - `unsafePreserveChecks` - if `true`, keep any `.check(...)` constraints * that were attached to the original struct. Defaults to `false`. * * **Warning**: This i
(
f: (fields: S["fields"]) => To,
options?: {
readonly unsafePreserveChecks?: boolean | undefined
} | undefined
)
| 12411 | * Schema.encodeSync(schemaFromJsonString)({ a: 1 }) // => "{\n \"a\": 1\n}" |
| 12412 | * ``` |
| 12413 | * |
| 12414 | * @category schemas |
| 12415 | * @since 4.0.0 |
| 12416 | */ |
no outgoing calls
no test coverage detected