You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to add post-processing hooks to an emitter? I want to post-process the generated OpenAPI, and I can do this by orchestrating Typespec myself with custom scripts, but it would be useful to be able to trigger a JS/TS function from Typespec itself so that it always executes after the emitter completes.
Then we could share that Typespec library across our org, and generate consistent custom output with it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to add post-processing hooks to an emitter? I want to post-process the generated OpenAPI, and I can do this by orchestrating Typespec myself with custom scripts, but it would be useful to be able to trigger a JS/TS function from Typespec itself so that it always executes after the emitter completes.
Then we could share that Typespec library across our org, and generate consistent custom output with it.
Beta Was this translation helpful? Give feedback.
All reactions