Finalized field configuration for now, fixed a bug in resolvers, added readme stub for data package
This commit is contained in:
@@ -17,4 +17,12 @@ export function typed_value(coercion_function, default_value, description) {
|
||||
|
||||
export function typed_factory(coercion_function, factory_function, description) {
|
||||
return new Field_Configuration(null, coercion_function, factory_function, description);
|
||||
}
|
||||
}
|
||||
|
||||
export function required(description) {
|
||||
return new Field_Configuration((value) => value !== undefined, null, null, description);
|
||||
}
|
||||
|
||||
export function typed_required(coercion_function, description) {
|
||||
return new Field_Configuration((value) => value !== undefined, coercion_function, null, description);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user