Skip to content

fix(*): resolve typeScript visitor imports for map types#238

Merged
mttrbrts merged 1 commit into
accordproject:mainfrom
muhabdulkadir:moh/fix-typescript-map-imports
May 31, 2026
Merged

fix(*): resolve typeScript visitor imports for map types#238
mttrbrts merged 1 commit into
accordproject:mainfrom
muhabdulkadir:moh/fix-typescript-map-imports

Conversation

@muhabdulkadir
Copy link
Copy Markdown
Contributor

@muhabdulkadir muhabdulkadir commented May 30, 2026

Closes #

Fixed TypeScript visitor code generation to correctly import map alias types without interface prefixes, ensuring generated imports match the emitted type names.

Map declarations emit export type Name = Map<key, value>. For map types from external namespaces, the imports must use direct type names (e.g., import {MapTypeName} not import {IMapTypeName}). This fix ensures consistency between what's imported and what's used in the generated types.

Changes

  • Property import logic now correctly identifies when to use direct type names vs. interface-prefixed names

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

Signed-off-by: Moh <40035796+muhabdulkadir@users.noreply.github.com>
@mttrbrts mttrbrts merged commit 13d87c9 into accordproject:main May 31, 2026
11 checks passed
apoorv7g pushed a commit to apoorv7g/concerto-codegen that referenced this pull request Jun 1, 2026
…ct#238)

Signed-off-by: Moh <40035796+muhabdulkadir@users.noreply.github.com>
Signed-off-by: Apoorv <130035517+APOORV7G@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants