UNPKG

@accordproject/concerto-core

Version:

Core Implementation for the Concerto Modeling Language

29 lines (28 loc) 889 B
import IdentifiedDeclaration = require('./identifieddeclaration'); /** * AssetDeclaration defines the schema (aka model or class) for * an Asset. It extends ClassDeclaration which manages a set of * fields, a super-type and the specification of an * identifying field. * * @extends ClassDeclaration * @see See {@link ClassDeclaration} * @class * @memberof module:concerto-core */ declare class AssetDeclaration extends IdentifiedDeclaration { /** * Create an AssetDeclaration. * @param {ModelFile} modelFile the ModelFile for this class * @param {Object} ast - The AST created by the parser * @throws {IllegalModelException} */ constructor(modelFile: any, ast: any); /** * Returns the kind of declaration * * @return {string} what kind of declaration this is */ declarationKind(): string; } export = AssetDeclaration;