Skip to content

Theemo / @theemo/figma / getTypeFromToken

Function: getTypeFromToken()

ts
function getTypeFromToken(token): keyof TokenTypeRegistry

Default implementation for getTypeFromToken()

Parameters

ParameterTypeDescription
tokenFigmaToken<"unknown">A parsed Figma Token

Returns

keyof TokenTypeRegistry

the parsed type

See

Documentation

Defined in

packages/@theemo/figma/src/defaults.ts:141