chore: defaults

This commit is contained in:
cha0s 2021-01-14 11:22:57 -06:00
parent 5e61359dc7
commit a5385cfd0f

View File

@ -20,7 +20,7 @@ export const gatherWithLatus = (context) => (latus) => (
}))
);
export default (latus, type, idAttribute, typeAttribute, check = () => {}) => {
export default (latus, type, idAttribute = 'id', typeAttribute = 'type', check = () => {}) => {
const gathered = latus.invokeReduce(type);
check(gathered, type);
const composed = latus.invokeComposed(`${type}.decorate`, gathered);