module@warp-drive/schema-dsl
ts
function readonly(target, key): void;Defined in: fields/readonly.ts:12
Decorator
Reserved for future compile-time type derivation (e.g. omitting a field from a resource's generated create/edit variant types). Currently a no-op: it has no effect on the compiled JSON schema, and stacking it with a field decorator like field changes nothing about that field's compiled output.
Parameters
target
object
key
string
Returns
void
Since
5.9.0