Skip to content

Commit

Permalink
feat(map): add JSDoc to ModelManager for enableMapType
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Casey <[email protected]>
  • Loading branch information
jonathan-casey committed Oct 10, 2023
1 parent a801e7d commit edf3da8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/concerto-core/lib/modelmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ModelManager extends BaseModelManager {
* @param {object} [options] - ModelManager options, also passed to Serializer
* @param {boolean} [options.strict] - require versioned namespaces and imports
* @param {Object} [options.regExp] - An alternative regular expression engine.
* @param {boolean} [options.enableMapType] - When true, the Concerto Map Type feature is enabled
*/
constructor(options) {
super(options, ctoProcessFile(options));
Expand Down
2 changes: 2 additions & 0 deletions packages/concerto-core/types/lib/modelmanager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ declare class ModelManager extends BaseModelManager {
* @param {object} [options] - ModelManager options, also passed to Serializer
* @param {boolean} [options.strict] - require versioned namespaces and imports
* @param {Object} [options.regExp] - An alternative regular expression engine.
* @param {boolean} [options.enableMapType] - When true, the Concerto Map Type feature is enabled
*/
constructor(options?: {
strict?: boolean;
regExp?: any;
enableMapType?: boolean;
});
/**
* Adds a model in CTO format to the ModelManager.
Expand Down

0 comments on commit edf3da8

Please sign in to comment.