Open rjrodger opened 2 years ago
Or:
function Open(...args) { return args }
function Required(...args) { return args }
And recognize the function names (with config flag)
or use []
as these are used much less frequently in shape defs:
const shapeDef = {
foo: 1,
// Normally: bar: Required(Open({ zed: true })),
bar: ['Required',['Open', {zed:true}]]
}
and "real" arrays are: ['Array',...]
or by modifying key: {'a: Open': {x:1}}
This allows shape def without importing Gubu
perhaps