DEV Community

Edoardo Sandon for Storyblok

Posted on

Generate Types for your components with the Storyblok CLI!⚑

πŸŽ‰πŸŽ‰πŸŽ‰ 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! πŸ’₯

Image description

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! πŸ™

Top comments (0)