export type EnumValue = string | boolean | number | symbol | undefined | React.ReactElement | Function | Object; /** * These types are intended to be returned by figma helper functions for exposing the * supported output modifiers for that type. There's no implementation for these types, * they are resolved to primitive types when the `props` object is passed to `example`. */ export interface ConnectedComponent { /** * Returns the resolved props of the connected component. This is useful for accessing * the `props` object of a child in a parent context. For example: * ```ts * figma.connect("parent", { * props: { * iconProps: figma.instance("Icon").getProps(), * }, * example: (iconProps) => , * } */ getProps(): T; /** * Renders the instance with the provided render function. The function is passed the resolved * `props` of the nested connected component. This is useful for dynamically rendering a child * component depending on parent context. For example: * ```ts * figma.connect("parent", { * props: { * icon: figma.instance("Icon").render(({ iconId }) => ), * }, * example: ({ icon }) =>