Theemo / @theemo/figma / getTypeFromToken
Function: getTypeFromToken()
ts
function getTypeFromToken(token): keyof TokenTypeRegistry
Default implementation for getTypeFromToken()
Parameters
Parameter | Type | Description |
---|---|---|
token | FigmaToken <"unknown" > | A parsed Figma Token |
Returns
keyof TokenTypeRegistry
the parsed type