@@ -54,7 +54,7 @@ export class Definition {
5454 * @param {ParsedHedTag } tag - The parsed HEd tag whose details should be checked.
5555 * @param {Schemas } hedSchema - The HED schemas used to validate against.
5656 * @param {boolean } placeholderAllowed - If true then placeholder is allowed in the def tag.
57- * @returns {[ string | null, Issue[] ] } - The evaluated normalized definition string and any issues in the evaluation,
57+ * @returns {string | null, Issue[] } - The evaluated normalized definition string and any issues in the evaluation,
5858 */
5959 evaluateDefinition ( tag , hedSchema , placeholderAllowed ) {
6060 // Check that the level of the value of tag agrees with the definition
@@ -106,7 +106,7 @@ export class Definition {
106106 *
107107 * @param {string } hedString - A list of string definitions.
108108 * @param {Schemas } hedSchemas - The HED schemas to use in creation.
109- * @returns { [ Definition, Issue[] ] } - The Definition list and any issues found.
109+ * @returns {Definition, Issue[] } - The Definition list and any issues found.
110110 */
111111 static createDefinition ( hedString , hedSchemas ) {
112112 const [ parsedString , issues ] = parseHedString ( hedString , hedSchemas , true , true )
@@ -122,7 +122,7 @@ export class Definition {
122122 /**
123123 * Create a definition from a ParsedHedGroup.
124124 * @param {ParsedHedGroup } group - The group to create a definition from.
125- * @returns { [ Definition, Issue[] ] } - The definition and any issues. (The definition will be null if issues.)
125+ * @returns {Definition, Issue[] } - The definition and any issues. (The definition will be null if issues.)
126126 */
127127 static createDefinitionFromGroup ( group ) {
128128 const def = new Definition ( group )
@@ -135,7 +135,7 @@ export class Definition {
135135
136136export class DefinitionManager {
137137 /**
138- * @type { Map<string, Definition> } - Definitions for this manager.
138+ * @type {Map } - Definitions for this manager (string --> Definition) .
139139 */
140140 definitions
141141
@@ -183,7 +183,7 @@ export class DefinitionManager {
183183 * @param {ParsedHedString } hedString - A parsed HED string to be checked.
184184 * @param {Schemas } hedSchemas - Schemas to validate against.
185185 * @param {boolean } placeholderAllowed - If true then placeholder is allowed in the def tag.
186- * @returns {Issue [] } - If there is no matching definition or definition applied incorrectly.
186+ * @returns {Issue[] } - If there is no matching definition or definition applied incorrectly.
187187 */
188188 validateDefs ( hedString , hedSchemas , placeholderAllowed ) {
189189 const defTags = filterByTagName ( hedString . tags , 'Def' )
@@ -202,7 +202,7 @@ export class DefinitionManager {
202202 * @param {ParsedHedString } hedString - A parsed HED string to be checked.
203203 * @param {Schemas } hedSchemas - Schemas to validate against.
204204 * @param {boolean } placeholderAllowed - If true then placeholder is allowed in the def tag.
205- * @returns {Issue [] } - If there is no matching definition or definition applied incorrectly.
205+ * @returns {Issue[] } - If there is no matching definition or definition applied incorrectly.
206206 */
207207 validateDefExpands ( hedString , hedSchemas , placeholderAllowed ) {
208208 //Def-expand tags should be rare, so don't look if there aren't any Def-expand tags
@@ -222,7 +222,7 @@ export class DefinitionManager {
222222 * @param {ParsedHedTag } tag - The tag to evaluate against the definitions.
223223 * @param {Schemas } hedSchemas - The schemas to be used to assist in the evaluation.
224224 * @param {boolean } placeholderAllowed - If true then placeholder is allowed in the def tag.
225- * @returns {[ string, Issue[] ] } - The evaluated definition contents with this tag and any issues.
225+ * @returns {string, Issue[] } - The evaluated definition contents with this tag and any issues.
226226 *
227227 * Note: If the tag is not a Def or Def-expand, this returns null for the string and [] for the issues.
228228 */
@@ -277,7 +277,7 @@ export class DefinitionManager {
277277 /**
278278 * Find the definition associated with a tag, if any
279279 * @param {ParsedHedTag } tag - The parsed HEd tag to be checked.
280- * @returns {[ Definition | null, Issue [] ] } - If there is no matching definition.
280+ * @returns {Definition | null, Issue[ ] } - If there is no matching definition.
281281 */
282282 findDefinition ( tag ) {
283283 if ( tag . schemaTag . _name !== 'Def' && tag . schemaTag . name !== 'Def-expand' ) {
@@ -300,7 +300,7 @@ export class DefinitionManager {
300300 *
301301 * @param {string[] } defStrings - A list of string definitions.
302302 * @param {Schemas } hedSchemas - The HED schemas to use in creation.
303- * @returns { [ Definition[], Issue[] ] } - The Definition list and any issues found.
303+ * @returns {Definition[], Issue[] } - The Definition list and any issues found.
304304 */
305305 static createDefinitions ( defStrings , hedSchemas ) {
306306 const defList = [ ]
0 commit comments