Re: [community-group] $type should be a required property (#139)

> Therefore, if that token happens to reference another token which has a different type, then that is an error since the value will be incompatible.


> If the author's intent is: token-c must be a color, so I want tools to warn
me if I accidentally reference a non-color token, then this is the way to
achieve that.

This goes both ways right?
You will not be able to reference a non-color token and you will also not be able to update the referenced token to something that isn't a color.

If you do need to change the type you would first need to remove the type constraint everywhere the token is referenced or remove all references and add them back later.

correct?

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/139#issuecomment-1183459690 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 13 July 2022 16:52:18 UTC