Skip to content

Commit

Permalink
chore(types) update types
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <danscode@selman.org>
  • Loading branch information
dselman committed Oct 3, 2023
1 parent b656e50 commit 991d9ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/concerto-core/types/lib/decoratormanager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ export = DecoratorManager;
* @memberof module:concerto-core
*/
declare class DecoratorManager {
/**
* Structural validation of the decoratorCommandSet against the
* Decorator Command Set model. Note that this only checks the
* structural integrity of the command set, it cannot check
* whether the commands are valid with respect to a model manager.
* Use the options.validateCommands option with decorateModels
* method to perform semantic validation.
* @param {*} decoratorCommandSet the DecoratorCommandSet object
* @param {ModelFile[]} [modelFiles] an optional array of model
* files that are added to the validation model manager returned
* @returns {ModelManager} the model manager created for validation
* @throws {Error} throws an error if the decoratorCommandSet is invalid
*/
static validate(decoratorCommandSet: any, modelFiles?: ModelFile[]): ModelManager;
/**
* Applies all the decorator commands from the DecoratorCommandSet
* to the ModelManager.
Expand Down Expand Up @@ -61,4 +75,5 @@ declare class DecoratorManager {
*/
static executePropertyCommand(property: any, command: any): void;
}
import ModelFile = require("./introspect/modelfile");
import ModelManager = require("./modelmanager");

0 comments on commit 991d9ee

Please sign in to comment.