3

styledictionary/4/type

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

What Changed

This codemod introduces strict typing across Style Dictionary, with .d.ts files published alongside each file. Importing from Style Dictionary’s entrypoints now automatically provides implicit types, offering significant improvements for TypeScript users with more accurate and fewer any types. Specific type interfaces can still be imported separately from the style-dictionary/types entrypoint if needed.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.