-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
Is your feature request related to a problem? Please describe.
const schema = new Schema('File', {
Entity: {},
size: 'number',
ratio: { method: (file) => file.size / 10, returns: 'number' },
});
const obj = { size: 100 };
const obj1 = schema.calculate(obj);
// Schema.check(obj);
// Assign new calculated fields with given objectFor memory only shorthand:
const schema = new Schema('File', {
size: 'number',
ratio: (file) => file.size / 10,
});
const obj = { size: 100 };
const obj1 = schema.calculate(obj);
// Schema.check(obj);
// Assign new calculated fields with given objectReactions are currently unavailable