function getTypes(data) {
    return data.map((name) => name.replace(/^function$/, 'Function'));
  }
Publish hook for the JSDoc template.  Writes to JSON stdout.
@param {Function} data The root of the Taffy DB containing doclet records.
@param {Object} opts Options.
@return {Promise} A promise that resolves when writing is complete.