Skip to content

Emit typescript interfaces? #3307

Answered by bterlson
arabold asked this question in Q&A
May 9, 2024 · 1 comments · 2 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: 1 comment 2 replies

Comment options

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

@bterlson
Comment options

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