Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

32 lines (26 loc) · 1.1 KB

Figma plugin types [DEPRECATED]

npm

⚠️⚠️⚠️

Scince May 8, 2020 official package is available here @figma/plugin-typings. This package no longer needed and should be replaced with official one.

This repository automatically making releases of official Figma plugin Typescript definitions file to @figma-plugin/types NPM module.

Usage

  1. Installation
npm i --save-dev @figma-plugin/types
# or
yarn add -D @figma-plugin/types
  1. Configure tsconfig.json
{
	"compilerOptions": {
		"moduleResolution": "node"
	}
}
  1. Create index.d.ts in the root of project and import definitions to apply it globally:
import "@figma-plugin/types"

About

GitHub Actions cronjob checks for updates for figma.d.ts source every 24 hours, and if new version detected make a release to NPM.