0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 13:43:03 -05:00

add shape for uuid

This commit is contained in:
Jordi Sala Morales 2024-04-10 11:53:41 +00:00
parent e36a702b9b
commit 645b0360c4
No known key found for this signature in database
GPG key ID: C5127140107F55FD
7 changed files with 19 additions and 14 deletions

View file

@ -1,5 +1,6 @@
import { Uuid } from '../utils/uuid';
export type CircleAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
type: symbol;
};

View file

@ -1,6 +1,7 @@
import { Uuid } from '../utils/uuid';
export type FrameAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
type: symbol;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
shapes?: any[];

View file

@ -1,6 +1,7 @@
import { Uuid } from '../utils/uuid';
export type GroupAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
type: symbol;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
shapes?: any[];

View file

@ -1,6 +1,7 @@
import { Uuid } from '../utils/uuid';
export type ImageAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
type: symbol;
// TODO: Investigate where it comes from
dataUri?: string;
@ -8,7 +9,6 @@ export type ImageAttributes = {
width: number;
height: number;
mtype?: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
};
};

View file

@ -1,5 +1,6 @@
import { Uuid } from '../utils/uuid';
export type RectAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
type: symbol;
};

View file

@ -1,8 +1,8 @@
import { Uuid } from '../utils/uuid';
import { TextContent } from './textContent';
export type TextAttributes = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id?: any;
id?: Uuid;
type: symbol;
content?: TextContent;
};

1
src/ui/lib/types/utils/uuid.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export type Uuid = string;