Replies: 1 comment 1 reply
-
aliases in TypeSpec are gone in the type graph and should be seen as a way to reuse some piece of code around not as a way to redeclare types. Could you share more about what you are trying to achieve/produce? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
is there a way for an emitter to get the context of where a namespace was aliased?
I'd like to do something like this:
having a file
import.tsp
to be imported from another one:and the main file:
With that I'd like an emitter to know that all models of the
usens
are part of its namespace as well.I guess this would potentially be a
namespaceLiteralContext
in the emitter framework, but it seems not to exist, or at least I couldn't find itBeta Was this translation helpful? Give feedback.
All reactions