Specifyapp / parsers

Specify helps you unify your brand identity by collecting, storing and distributing design tokens and assets — automatically.
https://specifyapp.com
Other
111 stars 15 forks source link

[Feature] Created `to-typescript-definition` parser #186

Closed JulesGuesnon closed 1 year ago

JulesGuesnon commented 1 year ago

Description

This parser converts tokens into Typescript types. The token type is the type name, and the tokens values are the possible values of the type

Also for the README, I filled every possible cases in the Option part. I'm not sure if it's 100% relevant, but I don't think typesNamesMapping.tokenType would be really explicit