@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
17 lines (16 loc) • 325 B
JavaScript
import { JsonEntityFn } from "./jsonEntityFn.js";
/**
* Set the property as WriteOnly.
*
* @returns {Function}
* @decorator
* @validation
* @property
* @parameter
* @schema
*/
export function WriteOnly(writeOnly = true) {
return JsonEntityFn((store) => {
store.itemSchema.writeOnly(writeOnly);
});
}