Skip to content

Commit

Permalink
feat(alias): aliasName renamed to aliasedName
Browse files Browse the repository at this point in the history
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
  • Loading branch information
salujajaskeerat committed Jun 27, 2024
1 parent 6f73351 commit cc0816f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/concerto-core/lib/introspect/modelfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,11 +752,11 @@ class ModelFile extends Decorated {
if (this.getModelManager().isAliasedTypeEnabled()) {
const aliasedTypes = new Map();
if (imp.aliasedTypes) {
imp.aliasedTypes.forEach(({ name, aliasName }) => {
if(ModelUtil.isPrimitiveType(aliasName)){
imp.aliasedTypes.forEach(({ name, aliasedName }) => {
if(ModelUtil.isPrimitiveType(aliasedName)){
throw new Error('Types cannot be aliased to primitive type');
}
aliasedTypes.set(name, aliasName);
aliasedTypes.set(name, aliasedName);
});
}
// Local-name(aliased or non-aliased) is mapped to the Fully qualified type name
Expand Down

0 comments on commit cc0816f

Please sign in to comment.