|
@@ -1166,9 +1166,9 @@ export class SchemaContext {
|
|
|
/**
|
|
/**
|
|
|
* Returns new SchemaContext instance with additional items created from provided definition.
|
|
* Returns new SchemaContext instance with additional items created from provided definition.
|
|
|
*
|
|
*
|
|
|
- * @param {String|module:engine/model/node~Node|~SchemaContextDefinition|Array<String|module:engine/model/node~Node>} definition
|
|
|
|
|
- * Definition of item(s) that will be added to current context.
|
|
|
|
|
- * @returns {~SchemaContext} New SchemaContext instance.
|
|
|
|
|
|
|
+ * @param {String|module:engine/model/node~Node|module:engine/model/schema~SchemaContext|
|
|
|
|
|
+ * Array<String|module:engine/model/node~Node>} definition Definition of item(s) that will be added to current context.
|
|
|
|
|
+ * @returns {module:engine/model/schema~SchemaContext} New SchemaContext instance.
|
|
|
*/
|
|
*/
|
|
|
concat( definition ) {
|
|
concat( definition ) {
|
|
|
if ( !( definition instanceof SchemaContext ) && !Array.isArray( definition ) ) {
|
|
if ( !( definition instanceof SchemaContext ) && !Array.isArray( definition ) ) {
|