mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 06:17:27 +08:00
18 lines
366 B
JavaScript
18 lines
366 B
JavaScript
const _ = require('lodash');
|
|
|
|
const Comment = require('./comment');
|
|
const Action = require('./action');
|
|
|
|
module.exports = (context) => {
|
|
|
|
// We need to return an object to be accessed.
|
|
return _.merge(...[
|
|
Comment,
|
|
Action,
|
|
].map((mutators) => {
|
|
|
|
// Each set of mutators is a function which takes the context.
|
|
return mutators(context);
|
|
}));
|
|
};
|