Skip to content
Permalink
Browse files

Fixed more optional parameter documentation. Sadly, ServiceNow doesn'…

…t properly indicate when a param is optional, so strict IDEs will bitch about them.

Also updated some other shit, I dunno. Commit messages are for sissies.
JUST DOWNLOAD IT, YOU WUSS, IT'S PROBABLY FINE MAYBE! <3
  • Loading branch information...
thisnameissoclever committed Apr 24, 2019
1 parent 4c670b6 commit 3ac2785aac3f36a5890c616d53c4d24d2d7b6a1e
Showing with 9 additions and 9 deletions.
  1. +4 −4 ES6/GlideAggregate.js
  2. +5 −5 ES6/GlideSystem.js
@@ -9,7 +9,7 @@ class GlideAggregate {
/**
* Adds an aggregate.
* @param {String} agg Name of the aggregate to add, for example, COUNT, MIN, or MAX
* @param {String} name (Optional) Name of the column to aggregate. Null is the default.
* @param {String} [name] (Optional) Name of the column to aggregate. Null is the default.
* @returns Method does not return a value
* @example var count = new GlideAggregate('incident');
* count.addAggregate('COUNT');
@@ -94,8 +94,8 @@ class GlideAggregate {
/**
* Gets the value of an aggregate from the current record.
* @param {String} agg The type of the aggregate, for example, SUM or Count.
* @param {String} name Name of the field to get the aggregate from.
* @returns The value of the aggregate.
* @param {String} [name] Name of the field to get the aggregate from.
* @returns {string|number} The value of the aggregate.
* @example var count = new GlideAggregate('incident');
* count.addAggregate('COUNT');
* count.query();
@@ -166,7 +166,7 @@ class GlideAggregate {
/**
* Gets the value of a field.
* @param {String} name The name of the field.
* @returns The value of the field.
* @returns {string} The value of the field.
* @example var count = new GlideAggregate('incident');
* count.addAggregate('MIN', 'sys_mod_count');
* count.addAggregate('MAX', 'sys_mod_count');
@@ -645,11 +645,11 @@ class GlideSystem {
/**
* Writes a warning message to the system log.
* @param {String} message The log message with place holders for any variable arguments.
* @param {Object} param1 (Optional) First variable argument.
* @param {Object} param2 (Optional) Second variable argument.
* @param {Object} param3 (Optional) Third variable argument.
* @param {Object} param4 (Optional) Fourth variable argument.
* @param {Object} param5 (Optional) Fifth variable argument.
* @param {Object} [param1] (Optional) First variable argument.
* @param {Object} [param2] (Optional) Second variable argument.
* @param {Object} [param3] (Optional) Third variable argument.
* @param {Object} [param4] (Optional) Fourth variable argument.
* @param {Object} [param5] (Optional) Fifth variable argument.
* @returns Method does not return a value
* @example gs.warn("This is a warning");
* var myFirstName = "Abel";

0 comments on commit 3ac2785

Please sign in to comment.
You can’t perform that action at this time.