mirror of
https://github.com/penpot/penpot.git
synced 2026-08-27 07:09:14 +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 =
|
export type PluginUIEvent =
|
||||||
| GETColorsPluginUIEvent
|
GETColorsPluginUIEvent | ResizePluginUIEvent | ResetPluginUIEvent;
|
||||||
| ResizePluginUIEvent
|
|
||||||
| ResetPluginUIEvent;
|
|
||||||
|
|
||||||
export interface ThemePluginEvent {
|
export interface ThemePluginEvent {
|
||||||
type: 'theme';
|
type: 'theme';
|
||||||
|
|||||||
@ -24,6 +24,4 @@ export interface ThemePluginEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type PluginMessageEvent =
|
export type PluginMessageEvent =
|
||||||
| InitPluginEvent
|
InitPluginEvent | SelectionPluginEvent | ThemePluginEvent;
|
||||||
| SelectionPluginEvent
|
|
||||||
| ThemePluginEvent;
|
|
||||||
|
|||||||
@ -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;
|
|
||||||
|
|||||||
@ -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 };
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
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 =
|
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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user