blob: f08d83232fb86b8c76359bc9ce1b40d2ebb53062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// General date type, used as the descriptor for a bunch of properties.
// This isn't dynamic though - it won't inherit from a date stored on
// another object, for example.
import {isDate} from '#validators';
// TODO: Not templateCompositeFrom.
export default function() {
return {
flags: {update: true, expose: true},
update: {validate: isDate},
};
}
|