How to pass properties of an parameter between files using the async execute(args)
inside an module exports. For example:
const obj = {
conditio: true
};
<...something>.execute(obj); // obj as the param
and in the module.exports:
module.exports = {
name: 'something',
async execute(obj) {} // here when I call the obj, the VSC will show the 'condition' as a property
}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment