// My function does X and Y.
// @params {object} parameters An object containing the parameters
// @params {function} callback The callback function
function(parameters, callback) {
}
But how do I describe how the parameters object should be structured?
(但是,我如何描述参数对象应该如何构造?)
For example it should be something like:(例如,它应该是这样的:)
{
setting1 : 123, // (required, integer)
setting2 : 'asdf' // (optional, string)
}
ask by Andy Hin translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…