UNPKG

@tsed/schema

Version:
17 lines (16 loc) 320 B
import { JsonEntityFn } from "./jsonEntityFn.js"; /** * Set the property as readOnly. * * @returns {Function} * @decorator * @validation * @property * @parameter * @schema */ export function ReadOnly(readOnly = true) { return JsonEntityFn((store) => { store.itemSchema.readOnly(readOnly); }); }