Skip to content
Myr

custom-print-multiple.js

This file

Path

test/fixtures/nested/custom-print-multiple.js

10 lines · 234 bytes · JavaScript

Last changed by

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

History of this file

Take it

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

lines 1–10why, one step back
1export const getOptions = ({type, fdNumber, secondFdNumber}) => ({
2 verbose: {3 [fdNumber](verboseLine, verboseObject) {4 if (verboseObject.type === type) {5 console.warn(verboseLine);6 }7 },8 [secondFdNumber]() {},9 },10});