Skip to content

Commit

Permalink
Update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurtado-figma committed Sep 16, 2024
1 parent 74dd3c8 commit 3105bde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions widget-api-standalone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
/**
* NOTE: This file is useful if you want to import specific types eg.
* import type { WidgetJSXFrameProps } from "@figma/widget-typings/widget-api-standalone"
*/
interface WidgetAPI {
*/interface WidgetAPI {
register(component: FunctionalWidget<any>): void
h(...args: any[]): FigmaDeclarativeNode
/** @deprecated Use useWidgetNodeId instead. */
Expand Down Expand Up @@ -536,5 +535,5 @@ declare namespace WidgetJSX {
type ComponentProps = AutoLayoutProps | FrameProps
}

// prettier-ignore
export { WidgetAPI, WidgetClickEvent, WidgetStuckEvent, WidgetAttachedStickablesChangedEvent, SyncedMap, AutoLayout, Frame, Rectangle, ImageComponent, Ellipse, Line, TextComponent, Input, SVG, Fragment, Span, FigmaVirtualNode, FigmaDeclarativeChildren, FigmaDeclarativeNode, FunctionalWidget, PropertyMenuItemType, PropertyMenuItem, WidgetPropertyMenuActionItem, WidgetPropertyMenuSeparatorItem, WidgetPropertyMenuColorSelectorOption, WidgetPropertyMenuColorItem, WidgetPropertyMenuDropdownOption, WidgetPropertyMenuDropdownItem, WidgetPropertyMenuToggleItem, WidgetPropertyMenuLinkItem, WidgetPropertyMenuItem, WidgetPropertyMenu, WidgetPropertyEvent, TextChildren, TextProps, TextEditEvent, PlaceholderProps, InputProps, FragmentProps, FrameProps, AutoLayoutProps, EllipseProps, RectangleProps, ImageProps, LineProps, SVGProps, BaseProps, HasChildrenProps, HexCode, WidgetJSX }

export { WidgetAPI, WidgetClickEvent, WidgetStuckEvent, WidgetAttachedStickablesChangedEvent, SyncedMap, AutoLayout, Frame, Rectangle, ImageComponent, Ellipse, Line, TextComponent, Input, SVG, Fragment, Span, FigmaVirtualNode, FigmaDeclarativeChildren, FigmaDeclarativeNode, FunctionalWidget, PropertyMenuItemType, PropertyMenuItem, WidgetPropertyMenuActionItem, WidgetPropertyMenuSeparatorItem, WidgetPropertyMenuColorSelectorOption, WidgetPropertyMenuColorItem, WidgetPropertyMenuDropdownOption, WidgetPropertyMenuDropdownItem, WidgetPropertyMenuToggleItem, WidgetPropertyMenuLinkItem, WidgetPropertyMenuItem, WidgetPropertyMenu, WidgetPropertyEvent, TextChildren, TextProps, TextEditEvent, PlaceholderProps, InputProps, FragmentProps, FrameProps, AutoLayoutProps, EllipseProps, RectangleProps, ImageProps, LineProps, SVGProps, BaseProps, HasChildrenProps, HexCode, WidgetJSX }

0 comments on commit 3105bde

Please sign in to comment.