0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-04 13:50:13 -05:00
penpot-plugins/libs/plugin-types
2024-12-12 10:39:20 +01:00
..
index.d.ts correct spelling 2024-11-21 09:17:38 +01:00
package.json chore(release): publish 1.1.0 [skip ci] 2024-12-12 10:39:20 +01:00
project.json feat: new publish script 2024-07-04 15:30:17 +02:00
README.md feat: updated doc links 2024-10-28 09:31:34 +01:00
tsconfig.json feat: plugin libraries 2024-04-08 11:44:59 +02:00

Penpot plugin-types

The @penpot/plugin-types package provides TypeScript type definitions for the Penpot Plugin API, making it easier to develop plugins for the Penpot design platform with full type safety and IDE support. It streamlines the development process by ensuring that your code is well-typed and less prone to errors.

Getting started

Installation

To add penpot's plugin-types to your project, use the following command:

npm install @penpot/plugin-types

Configuration

To ensure the typings work correctly in your project, update your tsconfig.json as follows:

"typeRoots": [
  "./node_modules/@types",
  "./node_modules/@penpot"
],
"types": ["plugin-types"],

Learn more

For more information on how to build plugins using the Penpot PLugin API, refer to the official documentation. You can also explore practical examples in the samples repository to see real-world implementations.