Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undo boundVariables nullability change #304

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

jefflee-figma
Copy link
Contributor

This change undoes the removal of nullable modifiers from boundVariables, introduced in #303.

boundVariables is indeed non-nullable when reading objects from the Plugin API, but several of the affected types, such as Paint and Effect, are used for writing. In the write path, boundVariables is optional. Removing the nullable modifier caused typechecker errors in otherwise valid code. The nullable modifier has been added back in 1.99. Apologies to everyone who encountered difficulties, and apologies to anyone affected by the additional churn from this update!

We intend to release a typings update in the future that makes boundVariables non-nullable in specific situations, but the second attempt will more carefully address the write path.

@jefflee-figma jefflee-figma merged commit ff5b355 into master Aug 27, 2024
2 checks passed
@jefflee-figma jefflee-figma deleted the jefflee/revert-bound-variables-nullable branch August 27, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants