Generate Types for your components with the Storyblok CLI!β‘
Edoardo Sandon
Posted on April 11, 2024
πππ After a couple of weeks of soft launch, weβre very excited to announce that you can now generate the Typescript type definitions for your Storyblok components directly from the Storyblok CLI with the new generate-typescript-typedefs
command!
Users can provide multiple source files, as well as a customized parser for Custom Field Plugins.
Easiest way to get it up & running?
Your types are just two commands away! π₯
You may find more information on how to use it in the Storyblok CLI Readme file.
The generate-typescript-typedefs
command is available in the latest version of the Storyblok CLI, so make sure you bump your deps!
This new feature of the CLI was inspired by the work of dohomi and his storyblok-generate-ts library. We want to thank him for his efforts in making Storyblok a better place! π
Posted on April 11, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.