- Docs: For clarity, rename grep-jsdoc.js to jsdoc-check-overly-generic-types.js

- Docs: Move GenericCallback to typedefs.js for possible reuse
- npm: Update "grep-doc" to "types-doc" for greater clarity
This commit is contained in:
Brett Zamir
2018-10-25 10:09:32 +08:00
parent 6b0e54af07
commit 89515b7e1e
4 changed files with 13 additions and 11 deletions

View File

@@ -5,14 +5,9 @@
let cbid = 0;
/**
* @callback module:EmbeddedSVGEdit.GenericCallback
* @param {...*} args Signature dependent on the function
* @returns {*} Return dependent on the function
*/
/**
* @callback module:EmbeddedSVGEdit.CallbackSetter
* @param {module:EmbeddedSVGEdit.GenericCallback} newCallback Callback to be stored (signature dependent on function)
* @param {GenericCallback} newCallback Callback to be stored (signature dependent on function)
* @returns {undefined}
*/
/**
@@ -339,7 +334,7 @@ class EmbeddedSVGEdit {
/**
* @param {string} name
* @param {ArgumentsArray} args Signature dependent on function
* @param {module:EmbeddedSVGEdit.GenericCallback} callback
* @param {GenericCallback} callback
* @returns {Integer}
*/
send (name, args, callback) {