Skip to content

Commit

Permalink
Typings updates for Update 92 (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roystbeef authored Apr 26, 2024
1 parent c778d3d commit 87783bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugin-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,13 @@ interface UtilAPI {
interface ColorPalette {
[key: string]: string
}
interface ConstantsAPI {
interface ColorPalettes {
figJamBase: ColorPalette
figJamBaseLight: ColorPalette
}
interface ConstantsAPI {
colors: ColorPalettes
}
declare type CodegenEvent = {
node: SceneNode
language: string
Expand Down Expand Up @@ -1013,6 +1016,9 @@ interface Constraints {
interface ColorStop {
readonly position: number
readonly color: RGBA
readonly boundVariables: {
[field in VariableBindableColorStopField]?: VariableAlias
}
}
interface ImageFilters {
readonly exposure?: number
Expand Down Expand Up @@ -1562,6 +1568,7 @@ declare type VariableBindableTextField =
| 'paragraphIndent'
declare type VariableBindablePaintField = 'color'
declare type VariableBindablePaintStyleField = 'paints'
declare type VariableBindableColorStopField = 'color'
declare type VariableBindableEffectField = 'color' | 'radius' | 'spread' | 'offsetX' | 'offsetY'
declare type VariableBindableEffectStyleField = 'effects'
declare type VariableBindableLayoutGridField = 'sectionSize' | 'count' | 'offset' | 'gutterSize'
Expand Down

0 comments on commit 87783bb

Please sign in to comment.