Generating types without climbing a tree - Matteo Collina
TypeScript Congress 2023 #TSCongress #GitNation Website β https://typescriptcongress.com/ Follow the link to watch the full version of all the conference talks, QnAβs with speakers and hands-on workshop recordings β https://portal.gitnation.org/events/typescript-congress-2023 Talk: Generating types without climbing a tree How do you generate types dynamically? How do you write a script that creates some typescript code? The approach most people would recommend is to use Abstract Syntax Tree manipulations. I was working on a deadline to implement types for our OpenAPI client, and I would have missed our release window. I needed something different and easier to build. Luckily, a friend recommended me a library I didn't know: code-block-writer. I fall in love with it at first sight. This event would not take place without the support of sponsors: π Platinum Sponsors Rollbar β https://www.rollbar.com/ π₯ Gold Sponsors Grafbase β https://grafbase.com Focus Reactive β https://focusreactive.com/