📎 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 =
| GETColorsPluginUIEvent
| ResizePluginUIEvent
| ResetPluginUIEvent;
GETColorsPluginUIEvent | ResizePluginUIEvent | ResetPluginUIEvent;
export interface ThemePluginEvent {
type: 'theme';

View File

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

View File

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

View File

@ -29,10 +29,7 @@ export interface ThemePluginEvent {
}
export type PluginMessageEvent =
| InitPluginEvent
| TablePluginEvent
| ThemePluginEvent
| TableConfigEvent;
InitPluginEvent | TablePluginEvent | ThemePluginEvent | TableConfigEvent;
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
Create ``tsconfig.plugin.json` next to the `tsconfig.json`:
Create ``tsconfig.plugin.json`next to the`tsconfig.json`:
```json
{

View File

@ -3576,15 +3576,7 @@ export interface Shadow {
* ```
*/
export type Shape =
| Board
| Group
| Boolean
| Rectangle
| Path
| Text
| Ellipse
| SvgRaw
| Image;
Board | Group | Boolean | Rectangle | Path | Text | Ellipse | SvgRaw | Image;
/**
* 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.
*/
textTransform:
| 'uppercase'
| 'capitalize'
| 'lowercase'
| 'none'
| 'mixed'
| null;
'uppercase' | '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.