@figma/plugin-typings
Advanced tools
Comparing version 1.70.0 to 1.71.0
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.70.0", | ||
"version": "1.71.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -1169,5 +1169,5 @@ /* plugin-typings are auto-generated. Do not update them directly. See plugin-docs/ for instructions. */ | ||
findOne(callback: (node: SceneNode) => boolean): SceneNode | null | ||
findAllWithCriteria<T extends NodeType[]>(criteria: { | ||
types: T | ||
}): Array< | ||
findAllWithCriteria<T extends NodeType[]>( | ||
criteria: FindAllCriteria<T>, | ||
): Array< | ||
{ | ||
@@ -1440,5 +1440,5 @@ type: T[number] | ||
findOne(callback: (node: PageNode | SceneNode) => boolean): PageNode | SceneNode | null | ||
findAllWithCriteria<T extends NodeType[]>(criteria: { | ||
types: T | ||
}): Array< | ||
findAllWithCriteria<T extends NodeType[]>( | ||
criteria: FindAllCriteria<T>, | ||
): Array< | ||
{ | ||
@@ -1742,2 +1742,4 @@ type: T[number] | ||
description: string | ||
hiddenFromPublishing: boolean | ||
getPublishStatusAsync(): Promise<PublishStatus> | ||
readonly remote: boolean | ||
@@ -1761,2 +1763,4 @@ readonly variableCollectionId: string | ||
name: string | ||
hiddenFromPublishing: boolean | ||
getPublishStatusAsync(): Promise<PublishStatus> | ||
readonly remote: boolean | ||
@@ -1841,2 +1845,3 @@ readonly modes: Array<{ | ||
} | null | ||
sectionContentsHidden: boolean | ||
clone(): SectionNode | ||
@@ -1947,1 +1952,11 @@ resizeWithoutConstraints(width: number, height: number): void | ||
} | ||
interface FindAllCriteria<T extends NodeType[]> { | ||
types?: T | ||
pluginData?: { | ||
keys?: string[] | ||
} | ||
sharedPluginData?: { | ||
namespace: string | ||
keys?: string[] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
64433
2017