UNPKG

single-source-of-truth

Version:
21 lines 492 B
import { ZodType } from 'zod/v4'; import { id, unique, updatedAt } from './symbols.js'; ZodType.prototype[id] = function () { return this.clone({ ...this.def, ' id': true, }); }; ZodType.prototype[unique] = function () { return this.clone({ ...this.def, ' unique': true, }); }; ZodType.prototype[updatedAt] = function () { return this.clone({ ...this.def, ' updatedAt': true, }); }; //# sourceMappingURL=prototype.js.map