Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figma-export/types

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/types - npm Package Compare versions

Comparing version 4.8.0-alpha.3 to 4.8.0-alpha.4

17

dist/commands.d.ts

@@ -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 */

6

dist/global.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc