@figma/widget-typings
Advanced tools
@@ -43,4 +43,6 @@ // Figma Widget API version 1, update 1 | ||
type SyncedMap<T = any> = { | ||
/** @deprecated use size instead */ | ||
readonly length: number; | ||
readonly size: number; | ||
get(key: string): T | undefined; | ||
@@ -197,3 +199,3 @@ set(key: string, value: T): void; | ||
rotation?: number; | ||
imageRef: string; | ||
imageRef?: string; | ||
} | ||
@@ -439,4 +441,3 @@ | ||
export interface ImageProps | ||
extends Omit<RectangleProps, "fill" | "width" | "height">, | ||
SizeProps { | ||
extends Omit<RectangleProps, "fill"> { | ||
src: string | ImagePaint; | ||
@@ -443,0 +444,0 @@ } |
{ | ||
"name": "@figma/widget-typings", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Typings for the Figma Widget API", | ||
@@ -5,0 +5,0 @@ "main": "", |
14994
0.21%414
0.24%