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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay