Skip to main content
Question

Figma Widget Typings does not recognize useProperty type 'toggle'

  • November 27, 2022
  • 1 reply
  • 304 views

Aashrey_Sharma

I’m trying to use a useProperty() toggle item but my widget’s typescript check fails with the following error.

src/main.tsx:60:9 - error TS2322: Type '"toggle"' is not assignable to type '"action" | "separator" | "color-selector" | "dropdown"'.

Seems like widget typings isn’t update with all the possible options right now.

1 reply

tank666
  • 4873 replies
  • November 27, 2022

Update the widget typing files to the current version.

GitHub

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings