mirror of
https://github.com/penpot/penpot.git
synced 2026-07-02 12:25:42 +00:00
📎 Fix fmt issues on plugins
This commit is contained in:
parent
92035ebd94
commit
1c02810b83
@ -35,9 +35,7 @@ export interface ResizePluginUIEvent {
|
||||
}
|
||||
|
||||
export type PluginUIEvent =
|
||||
| GETColorsPluginUIEvent
|
||||
| ResizePluginUIEvent
|
||||
| ResetPluginUIEvent;
|
||||
GETColorsPluginUIEvent | ResizePluginUIEvent | ResetPluginUIEvent;
|
||||
|
||||
export interface ThemePluginEvent {
|
||||
type: 'theme';
|
||||
|
||||
@ -24,6 +24,4 @@ export interface ThemePluginEvent {
|
||||
}
|
||||
|
||||
export type PluginMessageEvent =
|
||||
| InitPluginEvent
|
||||
| SelectionPluginEvent
|
||||
| ThemePluginEvent;
|
||||
InitPluginEvent | SelectionPluginEvent | ThemePluginEvent;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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 };
|
||||
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
17
plugins/libs/plugin-types/index.d.ts
vendored
17
plugins/libs/plugin-types/index.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user