Tag: jsdoc3

JSDoc:返回对象结构

我怎么能告诉JSDoc有关返回的对象的结构。 我find了@return {{field1: type, field2: type, …}} description语法,并试过了: /** * Returns a coordinate from a given mouse or touch event * @param {TouchEvent|MouseEvent|jQuery.Event} e * A valid mouse or touch event or a jQuery event wrapping such an * event. * @param {string} [type="page"] * A string representing the type of location that should be […]