StyleCreateChange
Defined in: figmaPluginTypes.ts:3111
https://www.figma.com/plugin-docs/api/DocumentChange
id:
string
Defined in: figmaPluginTypes.ts:3036
The id of the node / style that is subject to the document change. The same that is on node.id or style.id
origin:
"LOCAL"|"REMOTE"
Defined in: figmaPluginTypes.ts:3040
Where the change originates from. If the change is 'LOCAL' it is from the user running the plugin and if it is 'REMOTE' it is from a different user in the file.
style:
null|BaseStyle
Defined in: figmaPluginTypes.ts:3106
The style that has been updated in the document. This is null for StyleDeleteChange.
type:
"STYLE_CREATE"
Defined in: figmaPluginTypes.ts:3115
The string literal "STYLE_CREATE" representing the type of document change this is. Always check the type before reading other properties.