From 688fe744953fd72bc6a6901949bd0dbe62ddb406 Mon Sep 17 00:00:00 2001 From: Jerome Simeon Date: Tue, 15 Mar 2022 14:37:24 -0400 Subject: [PATCH] fix(core): Another fix to JSDoc Signed-off-by: Jerome Simeon --- packages/concerto-core/api.txt | 2 +- packages/concerto-core/changelog.txt | 2 +- packages/concerto-core/lib/modelmanager.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/concerto-core/api.txt b/packages/concerto-core/api.txt index c6ce9e8ea6..240cd5aea9 100644 --- a/packages/concerto-core/api.txt +++ b/packages/concerto-core/api.txt @@ -227,7 +227,7 @@ class ModelLoader { } class ModelManager extends BaseModelManager { + void constructor(object?) - + Object addCTOModel(string,string,boolean?) throws IllegalModelException + + Object addCTOModel(string,string?,boolean?) throws IllegalModelException } class SecurityException extends BaseException { + void constructor(string) diff --git a/packages/concerto-core/changelog.txt b/packages/concerto-core/changelog.txt index e6e2e106f5..67d1771083 100644 --- a/packages/concerto-core/changelog.txt +++ b/packages/concerto-core/changelog.txt @@ -24,7 +24,7 @@ # Note that the latest public API is documented using JSDocs and is available in api.txt. # -Version 1.2.2 {0bd210dc69b3813e8724353b1c355efc} 2021-11-24 +Version 1.2.2 {ee5fa0479fe2720d720ac500b1b3ead8} 2021-11-24 - Remove custom instanceof and add methods to check runtime type - Remove support for Node 12 - Generate Typescript definitions from JSDoc diff --git a/packages/concerto-core/lib/modelmanager.js b/packages/concerto-core/lib/modelmanager.js index d495d15431..032e7e9028 100644 --- a/packages/concerto-core/lib/modelmanager.js +++ b/packages/concerto-core/lib/modelmanager.js @@ -56,7 +56,7 @@ class ModelManager extends BaseModelManager { * Adds a model in CTO format to the ModelManager. * This is a convenience function equivalent to `addModel` but useful since it avoids having to copy the input CTO. * @param {string} cto - a cto string - * @param {string} fileName - an optional file name to associate with the model file + * @param {string} [fileName] - an optional file name to associate with the model file * @param {boolean} [disableValidation] - If true then the model files are not validated * @throws {IllegalModelException} * @return {Object} The newly added model file (internal).