From 80690b5edcfdbfaad0c7e0782d4912afd4837d97 Mon Sep 17 00:00:00 2001 From: Subhajit Ghosh Date: Fri, 22 Mar 2024 21:16:54 +0530 Subject: [PATCH] Fixing Inconsistent type declaration of ast property Signed-off-by: Subhajit Ghosh --- packages/concerto-core/types/lib/introspect/declaration.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/concerto-core/types/lib/introspect/declaration.d.ts b/packages/concerto-core/types/lib/introspect/declaration.d.ts index fcea92f30..7b30a56e2 100644 --- a/packages/concerto-core/types/lib/introspect/declaration.d.ts +++ b/packages/concerto-core/types/lib/introspect/declaration.d.ts @@ -16,10 +16,10 @@ declare class Declaration extends Decorated { * result of parsing. * * @param {ModelFile} modelFile - the ModelFile for this class - * @param {Object} ast - the AST created by the parser + * @param {IDeclaration} ast - the AST created by the parser * @throws {IllegalModelException} */ - constructor(modelFile: ModelFile, ast: any); + constructor(modelFile: ModelFile, ast: IDeclaration); modelFile: ModelFile; name: any; fqn: string; @@ -93,3 +93,4 @@ declare class Declaration extends Decorated { } import Decorated = require("./decorated"); import ModelFile = require("./modelfile"); +import {IDeclaration} from "../../../../concerto-types/src/generated/unions/concerto.metamodel@1.0.0"