Skip to content

Commit

Permalink
Typography variable enum typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurtado-figma committed Jun 6, 2024
1 parent 7facc5c commit a474ef9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ interface StyledTextSegment {
readonly [feature in OpenTypeFeature]: boolean
}
boundVariables?: {
[field in keyof Omit<
[field in Exclude<
VariableBindableTextField,
'paragraphSpacing' | 'paragraphIndent'
>]?: VariableAlias
Expand Down Expand Up @@ -1957,12 +1957,12 @@ interface NonResizableTextMixin {
getRangeBoundVariable(
start: number,
end: number,
field: keyof Omit<VariableBindableTextField, 'paragraphSpacing' | 'paragraphIndent'>,
field: Exclude<VariableBindableTextField, 'paragraphSpacing' | 'paragraphIndent'>,
): number | PluginAPI['mixed']
setRangeBoundVariable(
start: number,
end: number,
field: keyof Omit<VariableBindableTextField, 'paragraphSpacing' | 'paragraphIndent'>,
field: Exclude<VariableBindableTextField, 'paragraphSpacing' | 'paragraphIndent'>,
variable: Variable | null,
): void
getStyledTextSegments<
Expand Down

0 comments on commit a474ef9

Please sign in to comment.