@figma-export/types
Advanced tools
Comparing version 4.8.0-alpha.3 to 4.8.0-alpha.4
@@ -0,1 +1,2 @@ | ||
import type * as Figma from 'figma-js'; | ||
import { StringTransformer, ComponentOutputter, PageNode, ComponentFilter } from './global'; | ||
@@ -22,6 +23,13 @@ import { StyleOutputter, Style } from './styles'; | ||
version?: string; | ||
/** Figma page names (all pages when not specified) */ | ||
/** | ||
* Export only specified node IDs. | ||
* The `onlyFromPages` option is always ignored when set. | ||
*/ | ||
ids?: string[]; | ||
/** Figma page names or IDs (all pages when not specified) */ | ||
onlyFromPages?: string[]; | ||
/** Filter components to export */ | ||
filterComponent?: ComponentFilter; | ||
/** Node types to be exported @default ['COMPONENT'] */ | ||
includeTypes?: [Extract<Figma.NodeType, 'COMPONENT' | 'INSTANCE'>, ...Extract<Figma.NodeType, 'COMPONENT' | 'INSTANCE'>[]]; | ||
/** Transformer module name or path */ | ||
@@ -47,3 +55,8 @@ transformers?: StringTransformer[]; | ||
version?: string; | ||
/** Figma page names (all pages when not specified) */ | ||
/** | ||
* Export only specified node IDs. | ||
* The `onlyFromPages` option is always ignored when set. | ||
*/ | ||
ids?: string[]; | ||
/** Figma page names or IDs (all pages when not specified) */ | ||
onlyFromPages?: string[]; | ||
@@ -50,0 +63,0 @@ /** Outputter module name or path */ |
@@ -14,6 +14,6 @@ import * as Figma from 'figma-js'; | ||
}; | ||
export interface ComponentNode extends Figma.Component { | ||
export declare type ComponentNode = (Figma.Component | Figma.Instance) & { | ||
figmaExport: ComponentExtras; | ||
svg: string; | ||
} | ||
}; | ||
export interface PageNode extends Figma.Canvas { | ||
@@ -29,4 +29,4 @@ components: ComponentNode[]; | ||
export declare type StyleNode = Figma.Style & Figma.Node; | ||
export declare type ComponentFilter = (component: Figma.Component) => boolean; | ||
export declare type ComponentFilter = (component: Figma.Component | Figma.Instance) => boolean; | ||
export {}; | ||
//# sourceMappingURL=global.d.ts.map |
{ | ||
"name": "@figma-export/types", | ||
"version": "4.8.0-alpha.3", | ||
"version": "4.8.0-alpha.4", | ||
"description": "Type definition for @figma-export", | ||
@@ -35,3 +35,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "f32461a8a167e607fe5d8442f986c3e7f369ebb1" | ||
"gitHead": "e883adb11395faa225a228beb7126909430bfb46" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21727
287