Skip to content
module@warp-drive/schema-dsl
ts
function createonly(target, key): void;

Defined in: fields/createonly.ts:12

Decorator

Reserved for future compile-time type derivation (e.g. omitting a field from a resource's generated edit variant type). 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

Released under the MIT License.