Skip to content

Emit typescript interfaces? #3307

Answered by bterlson
arabold asked this question in Q&A
May 9, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

I believe this should be coming soon as part of our Rest client emitter work, though I can't say for sure. We definitely intend to have "model emitters" in all languages we support eventually.

If it's interesting or useful, we have a test emitter that does this, which you could perhaps use. Just note that it's just for testing purposes and you will have to copy/paste the code. You can find it here: https://github.com/microsoft/typespec/blob/main/packages/compiler/test/emitter-framework/typescript-emitter.ts

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@arabold
Comment options

@bterlson
Comment options

@seidtgeist
Comment options

Answer selected by arabold
Comment options

You must be logged in to vote
2 replies
@mcchrish
Comment options

@otomad
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants