📎 Fix fmt issues on plugins

This commit is contained in:
Andrey Antukh 2026-06-30 13:03:56 +02:00
parent 92035ebd94
commit 1c02810b83
6 changed files with 8 additions and 33 deletions

View File

@ -35,9 +35,7 @@ export interface ResizePluginUIEvent {
} }
export type PluginUIEvent = export type PluginUIEvent =
| GETColorsPluginUIEvent GETColorsPluginUIEvent | ResizePluginUIEvent | ResetPluginUIEvent;
| ResizePluginUIEvent
| ResetPluginUIEvent;
export interface ThemePluginEvent { export interface ThemePluginEvent {
type: 'theme'; type: 'theme';

View File

@ -24,6 +24,4 @@ export interface ThemePluginEvent {
} }
export type PluginMessageEvent = export type PluginMessageEvent =
| InitPluginEvent InitPluginEvent | SelectionPluginEvent | ThemePluginEvent;
| SelectionPluginEvent
| ThemePluginEvent;

View File

@ -1,8 +1,5 @@
export type GenerationTypes = export type GenerationTypes =
| 'paragraphs' 'paragraphs' | 'sentences' | 'words' | 'characters';
| 'sentences'
| 'words'
| 'characters';
export interface InitPluginUIEvent { export interface InitPluginUIEvent {
type: 'ready'; type: 'ready';
@ -35,6 +32,4 @@ export interface ThemePluginEvent {
} }
export type PluginMessageEvent = export type PluginMessageEvent =
| InitPluginEvent InitPluginEvent | SelectionPluginEvent | ThemePluginEvent;
| SelectionPluginEvent
| ThemePluginEvent;

View File

@ -29,10 +29,7 @@ export interface ThemePluginEvent {
} }
export type PluginMessageEvent = export type PluginMessageEvent =
| InitPluginEvent InitPluginEvent | TablePluginEvent | ThemePluginEvent | TableConfigEvent;
| TablePluginEvent
| ThemePluginEvent
| TableConfigEvent;
export type Cell = { column: number; row: number }; export type Cell = { column: number; row: number };

View File

@ -80,7 +80,7 @@ Create a `package.json` in your plugin folder with build scripts:
### Step 4: Modify TypeScript Configuration ### Step 4: Modify TypeScript Configuration
Create ``tsconfig.plugin.json` next to the `tsconfig.json`: Create ``tsconfig.plugin.json`next to the`tsconfig.json`:
```json ```json
{ {

View File

@ -3576,15 +3576,7 @@ export interface Shadow {
* ``` * ```
*/ */
export type Shape = export type Shape =
| Board Board | Group | Boolean | Rectangle | Path | Text | Ellipse | SvgRaw | Image;
| Group
| Boolean
| Rectangle
| Path
| Text
| Ellipse
| SvgRaw
| Image;
/** /**
* Represents the base properties and methods of a shape in Penpot. * Represents the base properties and methods of a shape in Penpot.
@ -4312,12 +4304,7 @@ export interface TextRange {
* The text transform applied to the text range. It can be a specific text transform or 'mixed' if multiple text transforms are used. * The text transform applied to the text range. It can be a specific text transform or 'mixed' if multiple text transforms are used.
*/ */
textTransform: textTransform:
| 'uppercase' 'uppercase' | 'capitalize' | 'lowercase' | 'none' | 'mixed' | null;
| 'capitalize'
| 'lowercase'
| 'none'
| 'mixed'
| null;
/** /**
* The text decoration applied to the text range. It can be a specific text decoration or 'mixed' if multiple text decorations are used. * The text decoration applied to the text range. It can be a specific text decoration or 'mixed' if multiple text decorations are used.