Skip to content

Commit

Permalink
web: add back in figma.util
Browse files Browse the repository at this point in the history
  • Loading branch information
jungwoolee-figma committed Jul 31, 2023
1 parent 53dffab commit 2be3f10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ interface PluginAPI {
saveVersionHistoryAsync(title: string, description?: string): Promise<VersionHistoryResult>
showUI(html: string, options?: ShowUIOptions): void
readonly ui: UIAPI
readonly util: UtilAPI
readonly clientStorage: ClientStorageAPI
readonly parameters: ParametersAPI
getNodeById(id: string): BaseNode | null
Expand Down Expand Up @@ -255,6 +256,11 @@ interface UIAPI {
once(type: 'message', callback: MessageEventHandler): void
off(type: 'message', callback: MessageEventHandler): void
}
interface UtilAPI {
rgb(color: string | RGB | RGBA): RGB
rgba(color: string | RGB | RGBA): RGBA
solidPaint(color: string | RGB | RGBA, overrides?: Partial<SolidPaint>): SolidPaint
}
declare type CodegenEvent = {
node: SceneNode
language: string
Expand Down

0 comments on commit 2be3f10

Please sign in to comment.