New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@figma/widget-typings

Package Overview
Dependencies
Maintainers
24
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma/widget-typings - npm Package Compare versions

Comparing version

to
1.0.1

10

index.d.ts

@@ -18,7 +18,7 @@ // Figma Widget API version 1, update 1

useWidgetId(): string;
useSyncedState<T>(
useSyncedState<T = any>(
name: string,
defaultValue: T
): [T, (newValue: T) => void];
useSyncedMap<T>(name: string): SyncedMap<T>;
useSyncedMap<T = any>(name: string): SyncedMap<T>;
usePropertyMenu(

@@ -43,3 +43,3 @@ items: WidgetPropertyMenuItem[],

type SyncedMap<T> = {
type SyncedMap<T = any> = {
readonly length: number;

@@ -68,3 +68,3 @@

type FigmaDeclarativeNode = Object | any[] | string | null;
type FigmaDeclarativeNode = Object | any[] | string | null | undefined | false;
type FunctionalWidget<T> = (props: T) => FigmaDeclarativeNode;

@@ -398,3 +398,3 @@

fontFamily?: string;
letterSpacing?: number;
letterSpacing?: number | string;
textDecoration?: "none" | "strikethrough" | "underline";

@@ -401,0 +401,0 @@ fontSize?: number;

{
"name": "@figma/widget-typings",
"version": "1.0.0",
"version": "1.0.1",
"description": "Typings for the Figma Widget API",

@@ -5,0 +5,0 @@ "main": "",