createVariable and setValueForMode reject the TIMING/EASING variable types, and VariableResolvedDataType / VariableValue don't include them. Reading them already works (resolvedType, valuesByMode) — only writing is missing.
Request
- Add
'TIMING' | 'EASING' to VariableResolvedDataType
- Add their value shapes to
VariableValue (TIMING = number; EASING = { easingType, bezierValues: { p1x, p1y, p2x, p2y }, springValues? }).
- Allow
createVariable / setValueForMode to accept them at runtime.
figma.variables.createVariable('t', collection, 'TIMING') // and 'EASING'
// ✗ resolvedType failed validation: Expected 'BOOLEAN' | 'COLOR' | 'FLOAT' | 'STRING'
@figma/plugin-typings@1.130.0
createVariableandsetValueForModereject the TIMING/EASING variable types, andVariableResolvedDataType/VariableValuedon't include them. Reading them already works (resolvedType,valuesByMode) — only writing is missing.Request
'TIMING' | 'EASING'toVariableResolvedDataTypeVariableValue(TIMING =number; EASING ={ easingType, bezierValues: { p1x, p1y, p2x, p2y }, springValues? }).createVariable/setValueForModeto accept them at runtime.@figma/plugin-typings@1.130.0