DEV Community

Edoardo Sandon for Storyblok

Posted on

3 1 1 1 1

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)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more