Skip to content

Update plugin typings#360

Merged
knguyen-figma merged 1 commit into
masterfrom
knguyen/update-typings-06-03-26
Jun 3, 2026
Merged

Update plugin typings#360
knguyen-figma merged 1 commit into
masterfrom
knguyen/update-typings-06-03-26

Conversation

@knguyen-figma
Copy link
Copy Markdown
Contributor

@knguyen-figma knguyen-figma commented Jun 3, 2026

Update generated plugin typings (plugin-api.d.ts and plugin-api-standalone.d.ts).

Changes

Slot component properties

  • Added new SlotSettings type with stretchChildOnInsert, displayEmptyByDefault, minChildren, maxChildren, and allowPreferredValuesOnly fields.
  • Added optional slotSettings to component property options/definitions (only supported for 'SLOT' properties).
  • Added a readonly limitViolations property to SlotNode ('BELOW_MIN' | 'ABOVE_MAX' | 'HAS_NON_PREFERRED') reporting which configured slot limits the current contents violate.
  • Exported SlotSettings.

Transform modifiers

  • TransformModifier is now a union type (LinearRepeatModifier | RadialRepeatModifier) instead of an empty interface.
  • RepeatModifier no longer extends TransformModifier.

Variable binding

  • Component property definition binding now uses VariableBindableComponentPropertyDefinitionField instead of VariableBindableComponentPropertyField.

Docs / formatting

  • Various JSDoc whitespace and formatting cleanups (added blank lines, fixed missing spaces before */ in brush/stroke comments, corner-radius doc text).

@knguyen-figma knguyen-figma merged commit 8766dcd into master Jun 3, 2026
4 checks passed
@knguyen-figma knguyen-figma deleted the knguyen/update-typings-06-03-26 branch June 3, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants